twn_gl_15_rendering.c: fix endlessly generating display lists
This commit is contained in:
parent
900a0a7506
commit
b75ff20014
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user