From b75ff20014ca86e9a65846372649c25c729b1013 Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Tue, 1 Oct 2024 18:38:54 +0300 Subject: [PATCH] twn_gl_15_rendering.c: fix endlessly generating display lists --- src/rendering/twn_gl_15_rendering.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rendering/twn_gl_15_rendering.c b/src/rendering/twn_gl_15_rendering.c index 23fc0f9..87e33ec 100644 --- a/src/rendering/twn_gl_15_rendering.c +++ b/src/rendering/twn_gl_15_rendering.c @@ -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);