From 212cc32097cec2744da28a23de247528ce8b53c9 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Fri, 2 Jul 2021 19:50:15 +1000 Subject: [PATCH] [client] opengl: deconfigure is idempotent --- client/renderers/OpenGL/opengl.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/client/renderers/OpenGL/opengl.c b/client/renderers/OpenGL/opengl.c index 3031a558..f2941b3b 100644 --- a/client/renderers/OpenGL/opengl.c +++ b/client/renderers/OpenGL/opengl.c @@ -913,8 +913,7 @@ static enum ConfigStatus configure(struct Inst * this) return CONFIG_STATUS_NOOP; } - if (this->configured) - deconfigure(this); + deconfigure(this); switch(this->format.type) { @@ -1091,9 +1090,6 @@ static enum ConfigStatus configure(struct Inst * this) static void deconfigure(struct Inst * this) { - if (!this->configured) - return; - if (this->hasTextures) { glDeleteTextures(TEXTURE_COUNT, this->textures);