mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +00:00
[client] opengl: deconfigure is idempotent
This commit is contained in:
parent
d385b49f5f
commit
212cc32097
@ -913,7 +913,6 @@ static enum ConfigStatus configure(struct Inst * this)
|
||||
return CONFIG_STATUS_NOOP;
|
||||
}
|
||||
|
||||
if (this->configured)
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user