summaryrefslogtreecommitdiff
path: root/vcl/source/opengl/OpenGLContext.cxx
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2016-01-05 16:17:54 +0200
committerTor Lillqvist <tml@collabora.com>2016-01-07 10:41:35 +0200
commit89f9c38dac55966cd51587176b3bb7e0e5867f3d (patch)
tree88e1958057e691e365480fb672726c53c002124b /vcl/source/opengl/OpenGLContext.cxx
parent97e2cc532644a1a7cbbae049f37bc3ac098e94ac (diff)
Fix dbgutil build in case GL_DEBUG_SEVERITY_NOTIFICATION_ARB is undefined
Change-Id: I14628e9dee8651e87b4782057c4681fded5e4643 (cherry picked from commit 1fd7994a4ea7daf8bdbf394f4d5cd8f678d00758)
Diffstat (limited to 'vcl/source/opengl/OpenGLContext.cxx')
-rw-r--r--vcl/source/opengl/OpenGLContext.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx
index ede2e2bcf5d7..82d987deeaae 100644
--- a/vcl/source/opengl/OpenGLContext.cxx
+++ b/vcl/source/opengl/OpenGLContext.cxx
@@ -1044,8 +1044,10 @@ void OpenGLContext::InitGLEWDebugging()
glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB);
glDebugMessageCallbackARB(&debug_callback, nullptr);
+#ifdef GL_DEBUG_SEVERITY_NOTIFICATION_ARB
// Ignore i965’s shader compiler notification flood.
glDebugMessageControlARB(GL_DEBUG_SOURCE_SHADER_COMPILER_ARB, GL_DEBUG_TYPE_OTHER_ARB, GL_DEBUG_SEVERITY_NOTIFICATION_ARB, 0, nullptr, true);
+#endif
}
else if ( glDebugMessageCallback )
{