mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Fix crash when application is using unsupported function.
It fixes this crash: https://gist.github.com/achanot/7e0d25d1e5a619a61b688ec895c7a349
This commit is contained in:
committed by
Baldur Karlsson
parent
cb0dc39bf3
commit
b173e85a1f
@@ -1011,8 +1011,12 @@ void WrappedOpenGL::UseUnusedSupportedFunction(const char *name)
|
||||
if(it->second.Modern())
|
||||
{
|
||||
RenderDoc::Inst().RemoveDeviceFrameCapturer(it->second.ctx);
|
||||
for(auto wnd : it->second.windows)
|
||||
it->second.UnassociateWindow(this, wnd.first);
|
||||
for(auto wnd = it->second.windows.begin(); wnd != it->second.windows.end();)
|
||||
{
|
||||
void *wndHandle = wnd->first;
|
||||
wnd++;
|
||||
it->second.UnassociateWindow(this, wndHandle);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user