mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-23 21:44:50 +00:00
[client] opengl: deconfigure is idempotent
This commit is contained in:
parent
d385b49f5f
commit
212cc32097
1 changed files with 1 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue