mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-04 09:44:16 +00:00
[client] fix too early release of OpenGL context
Fixes a problem where resolution changes would require a restart of the client
This commit is contained in:
@@ -191,6 +191,12 @@ void opengl_deinitialize(void * opaque)
|
||||
if (this->mouseData)
|
||||
free(this->mouseData);
|
||||
|
||||
if (this->glContext)
|
||||
{
|
||||
SDL_GL_DeleteContext(this->glContext);
|
||||
this->glContext = NULL;
|
||||
}
|
||||
|
||||
LG_LOCK_FREE(this->formatLock);
|
||||
LG_LOCK_FREE(this->syncLock );
|
||||
LG_LOCK_FREE(this->mouseLock );
|
||||
@@ -993,12 +999,6 @@ static void deconfigure(struct Inst * this)
|
||||
}
|
||||
}
|
||||
|
||||
if (this->glContext)
|
||||
{
|
||||
SDL_GL_DeleteContext(this->glContext);
|
||||
this->glContext = NULL;
|
||||
}
|
||||
|
||||
if (this->decoderData)
|
||||
{
|
||||
this->decoder->destroy(this->decoderData);
|
||||
|
Reference in New Issue
Block a user