mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
fixed wrong declaration order with MINIMIZE_GL_CALLS
This commit is contained in:
parent
ee8b442300
commit
29a170f423
15
polygons.cpp
15
polygons.cpp
@ -154,6 +154,13 @@ int shapes_merged;
|
||||
|
||||
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() {
|
||||
#if MINIMIZE_GL_CALLS
|
||||
if(isize(triangle_vertices)) {
|
||||
@ -510,14 +517,6 @@ void drawTexturedTriangle(SDL_Surface *s, int *px, int *py, glvertex *tv, color_
|
||||
|
||||
#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) {
|
||||
GLfloat mat[16];
|
||||
int id = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user