mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-13 23:59:10 +00:00
Check for KHR_debug when calling glDebugMessageCallback
This commit is contained in:
1 parent
8fb49d08f3
commit
07df2cc37c
1 file changed
+3
-2
@@ -759,7 +759,7 @@ WrappedOpenGL::WrappedOpenGL(const char *logfile, const GLHookSet &funcs) : m_Re
|
||||
}
|
||||
|
||||
// once GL driver is more tested, this can be disabled
|
||||
if(m_Real.glDebugMessageCallback)
|
||||
if(ExtensionSupported[GLExt_KHR_debug] && m_Real.glDebugMessageCallback)
|
||||
{
|
||||
m_Real.glDebugMessageCallback(&DebugSnoopStatic, this);
|
||||
#if ENABLED(RDOC_DEVEL)
|
||||
@@ -1347,7 +1347,8 @@ void WrappedOpenGL::ActivateContext(GLWindowingData winData)
|
||||
|
||||
const GLHookSet &gl = m_Real;
|
||||
|
||||
if(gl.glDebugMessageCallback && RenderDoc::Inst().GetCaptureOptions().APIValidation)
|
||||
if(ExtensionSupported[GLExt_KHR_debug] && gl.glDebugMessageCallback &&
|
||||
RenderDoc::Inst().GetCaptureOptions().APIValidation)
|
||||
{
|
||||
gl.glDebugMessageCallback(&DebugSnoopStatic, this);
|
||||
gl.glEnable(eGL_DEBUG_OUTPUT_SYNCHRONOUS);
|
||||
|
||||
Reference in new issue
Block a user