summaryrefslogtreecommitdiff
path: root/vcl/source/opengl
diff options
context:
space:
mode:
authorToma┼ż Vajngerl <tomaz.vajngerl@collabora.co.uk>2016-05-24 22:57:21 +0900
committerTor Lillqvist <tml@collabora.com>2016-05-24 14:09:34 +0000
commitada1f674902467940e9b4d13fc8100690d7e07d8 (patch)
tree752d2d35b8400d6586f6e4726b11aaa68051adf6 /vcl/source/opengl
parent0d116ad98d7c25df4ad63839bcf2fd7f152956df (diff)
opengl: prevent seg. fault - VCL_GL_INFO still needs the context
Change-Id: Iaf71104d85e8a0b8f5b101f614a6c4b90ce63f87 Reviewed-on: https://gerrit.libreoffice.org/25409 Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'vcl/source/opengl')
-rw-r--r--vcl/source/opengl/OpenGLContext.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx
index 29e543611bf3..ea9053706c44 100644
--- a/vcl/source/opengl/OpenGLContext.cxx
+++ b/vcl/source/opengl/OpenGLContext.cxx
@@ -84,10 +84,11 @@ OpenGLContext::OpenGLContext():
OpenGLContext::~OpenGLContext()
{
- VCL_GL_INFO("delete context: " << this);
assert (mnRefCount == 0);
mnRefCount = 1; // guard the shutdown paths.
+ VCL_GL_INFO("delete context: " << this);
+
reset();
ImplSVData* pSVData = ImplGetSVData();