diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-05-12 17:49:00 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-05-12 15:54:24 +0000 |
commit | 3ddae832bbb71306a574c4e1087de0a0da318966 (patch) | |
tree | 12b85bae691b4835c456e6637eee728b27159c60 /vcl | |
parent | f7b88a2b03122360b2e60e2afa453603022d28df (diff) |
fix crash when glDebugMessageCallback is 0 despite feature being there
Change-Id: I1e6986e1e56f78f10f4677f471d2bdea2231f787
Reviewed-on: https://gerrit.libreoffice.org/9331
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/opengl/OpenGLContext.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx index 58202fb170a2..1700488a6c64 100644 --- a/vcl/source/opengl/OpenGLContext.cxx +++ b/vcl/source/opengl/OpenGLContext.cxx @@ -525,7 +525,9 @@ bool OpenGLContext::ImplInit() #ifdef DBG_UTIL // only enable debug output in dbgutil build - if( GLEW_ARB_debug_output ) + // somehow there are implementations where the feature is present and the function + // pointer is still NULL + if( GLEW_ARB_debug_output && glDebugMessageCallback ) { glEnable(GL_DEBUG_OUTPUT); glDebugMessageCallback(&debug_callback, NULL); |