Skip to content

Commit

Permalink
Fix deadlock during exit
Browse files Browse the repository at this point in the history
  • Loading branch information
vilbeyli committed Aug 10, 2020
1 parent 8e6a5f8 commit a0352a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Source/Application/VQEngine_Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ bool VQEngine::Initialize(const FStartupParameters& Params)
void VQEngine::Exit()
{
ExitThreads();

mRenderer.Unload();
mRenderer.Exit();
}


Expand Down
3 changes: 1 addition & 2 deletions Source/Application/VQEngine_Render.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,7 @@ void VQEngine::RenderThread_Inititalize()

void VQEngine::RenderThread_Exit()
{
mRenderer.Unload();
mRenderer.Exit();
mpSemUpdate->Signal();
}

void VQEngine::InitializeBuiltinMeshes()
Expand Down

0 comments on commit a0352a0

Please sign in to comment.