mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-05 21:35:49 +00:00
Don't register debug callback on GL when structured-exporting
This commit is contained in:
@@ -1150,6 +1150,8 @@ void GLReplay::DeleteDebugData()
|
||||
|
||||
MakeCurrentReplayContext(&m_ReplayCtx);
|
||||
|
||||
GL.glDebugMessageCallback(NULL, NULL);
|
||||
|
||||
if(DebugData.overlayProg)
|
||||
drv.glDeleteProgram(DebugData.overlayProg);
|
||||
|
||||
@@ -1159,6 +1161,8 @@ void GLReplay::DeleteDebugData()
|
||||
|
||||
MakeCurrentReplayContext(m_DebugCtx);
|
||||
|
||||
GL.glDebugMessageCallback(NULL, NULL);
|
||||
|
||||
ClearPostVSCache();
|
||||
|
||||
drv.glDeleteFramebuffers(1, &DebugData.overlayFBO);
|
||||
|
||||
@@ -661,8 +661,6 @@ WrappedOpenGL::WrappedOpenGL(GLPlatform &platform)
|
||||
if(RenderDoc::Inst().IsReplayApp())
|
||||
{
|
||||
m_State = CaptureState::LoadingReplaying;
|
||||
|
||||
RegisterDebugCallback();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -260,6 +260,8 @@ void GLReplay::SetReplayData(GLWindowingData data)
|
||||
if(m_pDriver != NULL)
|
||||
m_pDriver->RegisterReplayContext(m_ReplayCtx, NULL, true, true);
|
||||
|
||||
m_pDriver->RegisterDebugCallback();
|
||||
|
||||
InitDebugData();
|
||||
|
||||
if(!HasDebugContext())
|
||||
|
||||
Reference in New Issue
Block a user