mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-13 19:17:12 +00:00
Check for GL debug extension when using it
Apple does not support glDebugMessageCallback
This commit is contained in:
committed by
Baldur Karlsson
parent
769fade4cf
commit
87cb4e58b6
@@ -1147,7 +1147,10 @@ void GLReplay::DeleteDebugData()
|
||||
|
||||
MakeCurrentReplayContext(&m_ReplayCtx);
|
||||
|
||||
GL.glDebugMessageCallback(NULL, NULL);
|
||||
if(HasExt[KHR_debug])
|
||||
{
|
||||
GL.glDebugMessageCallback(NULL, NULL);
|
||||
}
|
||||
|
||||
if(DebugData.overlayProg)
|
||||
drv.glDeleteProgram(DebugData.overlayProg);
|
||||
@@ -1163,7 +1166,10 @@ void GLReplay::DeleteDebugData()
|
||||
|
||||
MakeCurrentReplayContext(m_DebugCtx);
|
||||
|
||||
GL.glDebugMessageCallback(NULL, NULL);
|
||||
if(HasExt[KHR_debug])
|
||||
{
|
||||
GL.glDebugMessageCallback(NULL, NULL);
|
||||
}
|
||||
|
||||
ClearPostVSCache();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user