[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - vcl/source
Markus Mohrhard
markus.mohrhard at googlemail.com
Mon Sep 7 07:53:55 PDT 2015
vcl/source/opengl/OpenGLContext.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 42674aaed9b3f88fa95eb73a3cd88d4fb56264e1
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Mon Sep 7 16:39:04 2015 +0200
tdf#93989 - prevent crash with non-vcl OpenGL contexts
Change-Id: Ia829b0f723c8ded1237e52d48f034da3c1ac249e
Signed-off-by: Michael Meeks <michael.meeks at collabora.com>
diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx
index e217690..978fdd7f 100644
--- a/vcl/source/opengl/OpenGLContext.cxx
+++ b/vcl/source/opengl/OpenGLContext.cxx
@@ -1505,7 +1505,8 @@ void OpenGLContext::resetCurrent()
#elif defined( IOS ) || defined( ANDROID ) || defined(LIBO_HEADLESS)
// nothing
#elif defined( UNX )
- glXMakeCurrent(m_aGLWin.dpy, None, NULL);
+ if (m_aGLWin.dpy)
+ glXMakeCurrent(m_aGLWin.dpy, None, NULL);
#endif
}
More information about the Libreoffice-commits
mailing list