mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +00:00
[client] opengl: do not prematurely delete overlay textures
Overlay textures exist for the lifetime of the renderer and as such should not be deleted when the resolution changes.
This commit is contained in:
parent
212cc32097
commit
9cbc255448
@ -279,6 +279,13 @@ void opengl_deinitialize(void * opaque)
|
||||
}
|
||||
|
||||
deconfigure(this);
|
||||
|
||||
if (this->hasTextures)
|
||||
{
|
||||
glDeleteTextures(TEXTURE_COUNT, this->textures);
|
||||
this->hasTextures = false;
|
||||
}
|
||||
|
||||
if (this->mouseData)
|
||||
free(this->mouseData);
|
||||
|
||||
@ -1090,12 +1097,6 @@ static enum ConfigStatus configure(struct Inst * this)
|
||||
|
||||
static void deconfigure(struct Inst * this)
|
||||
{
|
||||
if (this->hasTextures)
|
||||
{
|
||||
glDeleteTextures(TEXTURE_COUNT, this->textures);
|
||||
this->hasTextures = false;
|
||||
}
|
||||
|
||||
if (this->hasFrames)
|
||||
{
|
||||
glDeleteTextures(BUFFER_COUNT, this->frames);
|
||||
|
Loading…
Reference in New Issue
Block a user