summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2015-01-22 19:26:53 +0100
committerMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2015-01-22 19:26:53 +0100
commitccb7b443cf0ac457c51f3bc6c1b8ef660fc558b4 (patch)
tree18282c0cb7819c0d0bb8f38bf1ab1a54244c1dba
parentf1a2adc95b2fc370288162128e271c9514d223f5 (diff)
first try to fix context problem
Change-Id: If7f5a95a2d0c60b7857cacf5101da936eb696f15
-rw-r--r--vcl/opengl/gdiimpl.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx
index da2ace3fce62..7d930d27bf23 100644
--- a/vcl/opengl/gdiimpl.cxx
+++ b/vcl/opengl/gdiimpl.cxx
@@ -187,6 +187,10 @@ void OpenGLSalGraphicsImpl::PostDraw()
mProgramIsSolidColor = false;
#endif
}
+ if (mbOffscreen)
+ {
+ ReleaseContext();
+ }
CHECK_GL_ERROR();
}