mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 22:13:40 +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:
parent
32dca9ea3f
commit
14954cc426
@ -191,6 +191,12 @@ void opengl_deinitialize(void * opaque)
|
|||||||
if (this->mouseData)
|
if (this->mouseData)
|
||||||
free(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->formatLock);
|
||||||
LG_LOCK_FREE(this->syncLock );
|
LG_LOCK_FREE(this->syncLock );
|
||||||
LG_LOCK_FREE(this->mouseLock );
|
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)
|
if (this->decoderData)
|
||||||
{
|
{
|
||||||
this->decoder->destroy(this->decoderData);
|
this->decoder->destroy(this->decoderData);
|
||||||
|
Loading…
Reference in New Issue
Block a user