summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2016-01-05 16:17:54 +0200
committerTor Lillqvist <tml@collabora.com>2016-01-05 16:19:29 +0200
commit1fd7994a4ea7daf8bdbf394f4d5cd8f678d00758 (patch)
treefdf993b2752e02d31604cb62a0e648c6ba40fcd1 /vcl/source
parentd12dcbcb61b1818c7ea58650fc06bf4aa04057cf (diff)
Fix dbgutil build in case GL_DEBUG_SEVERITY_NOTIFICATION_ARB is undefined
Change-Id: I14628e9dee8651e87b4782057c4681fded5e4643
Diffstat (limited to 'vcl/source')
-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 5226e34d02e8..1dc7d61da80e 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 )
{