1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

fixed wrong declaration order with MINIMIZE_GL_CALLS

This commit is contained in:
Zeno Rogue 2019-05-07 01:12:42 +02:00
parent ee8b442300
commit 29a170f423

View File

@ -154,6 +154,13 @@ int shapes_merged;
vector<glhr::textured_vertex> text_vertices; vector<glhr::textured_vertex> text_vertices;
#if MINIMIZE_GL_CALLS
color_t triangle_color, line_color;
vector<glvertex> triangle_vertices;
vector<glvertex> line_vertices;
void glapplymatrix(const transmatrix& V);
#endif
void glflush() { void glflush() {
#if MINIMIZE_GL_CALLS #if MINIMIZE_GL_CALLS
if(isize(triangle_vertices)) { if(isize(triangle_vertices)) {
@ -510,14 +517,6 @@ void drawTexturedTriangle(SDL_Surface *s, int *px, int *py, glvertex *tv, color_
#if CAP_GL #if CAP_GL
void glapplymatrix(const transmatrix& V);
#if MINIMIZE_GL_CALLS
color_t triangle_color, line_color;
vector<glvertex> triangle_vertices;
vector<glvertex> line_vertices;
#endif
void glapplymatrix(const transmatrix& V) { void glapplymatrix(const transmatrix& V) {
GLfloat mat[16]; GLfloat mat[16];
int id = 0; int id = 0;