twn_gl_15_rendering.c: fix endlessly generating display lists
This commit is contained in:
1 parent
900a0a7506
commit
b75ff20014
1 file changed
+1
-1
@@ -201,7 +201,7 @@ void render_circle(const CirclePrimitive *circle) {
|
||||
|
||||
|
||||
void use_texture_mode(TextureMode mode) {
|
||||
GLuint lists = 0;
|
||||
static GLuint lists = 0;
|
||||
if (!lists) {
|
||||
lists = glGenLists(3);
|
||||
|
||||
|
||||
Reference in new issue
Block a user