Skip to content

Commit

Permalink
Added drawSemaphore in systemViewDestroyed
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardodoria committed Aug 8, 2023
1 parent 32d6486 commit db1f4c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions engine/core/Engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,8 @@ void Engine::systemDraw(){
}

void Engine::systemViewDestroyed(){
drawSemaphore.acquire();

viewLoaded = false;
Engine::onViewDestroyed.call();

Expand All @@ -580,6 +582,8 @@ void Engine::systemViewDestroyed(){

TexturePool::clear();
ShaderPool::clear();

drawSemaphore.release();
}

void Engine::systemShutdown(){
Expand Down

0 comments on commit db1f4c9

Please sign in to comment.