[client] opengl: deconfigure is idempotent

This commit is contained in:
Geoffrey McRae 2021-07-02 19:50:15 +10:00
parent d385b49f5f
commit 212cc32097

View File

@ -913,7 +913,6 @@ static enum ConfigStatus configure(struct Inst * this)
return CONFIG_STATUS_NOOP; return CONFIG_STATUS_NOOP;
} }
if (this->configured)
deconfigure(this); deconfigure(this);
switch(this->format.type) switch(this->format.type)
@ -1091,9 +1090,6 @@ static enum ConfigStatus configure(struct Inst * this)
static void deconfigure(struct Inst * this) static void deconfigure(struct Inst * this)
{ {
if (!this->configured)
return;
if (this->hasTextures) if (this->hasTextures)
{ {
glDeleteTextures(TEXTURE_COUNT, this->textures); glDeleteTextures(TEXTURE_COUNT, this->textures);