mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 21:10:42 +00:00
Don't try to close & delete a NULL thread
This commit is contained in:
@@ -62,12 +62,17 @@ void RenderManager::CloseThread()
|
||||
|
||||
m_RenderCondition.wakeAll();
|
||||
|
||||
if(m_Thread == NULL)
|
||||
return;
|
||||
|
||||
// wait for the thread to close and clean up
|
||||
while(m_Thread->isRunning())
|
||||
{
|
||||
}
|
||||
|
||||
m_Thread->deleteLater();
|
||||
|
||||
m_Thread = NULL;
|
||||
}
|
||||
|
||||
void RenderManager::PushInvoke(RenderManager::InvokeHandle *cmd)
|
||||
|
||||
Reference in New Issue
Block a user