Kaydet (Commit) 53193345 authored tarafından Louis-Francis Ratté-Boulianne's avatar Louis-Francis Ratté-Boulianne Kaydeden (comit) Jan Holesovsky

vcl: Release the OpenGL context for offscreen rendering after each operation

Change-Id: If253a4c0a1f64b1cc54e0079d4455abf39620ac0
üst 0a04ceca
...@@ -161,6 +161,11 @@ void OpenGLSalGraphicsImpl::PostDraw() ...@@ -161,6 +161,11 @@ void OpenGLSalGraphicsImpl::PostDraw()
mpFramebuffer = NULL; mpFramebuffer = NULL;
CHECK_GL_ERROR(); CHECK_GL_ERROR();
// release the context as there is no guarantee the underlying window
// will still be valid for the next draw operation
if( mbOffscreen )
ReleaseContext();
} }
void OpenGLSalGraphicsImpl::freeResources() void OpenGLSalGraphicsImpl::freeResources()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment