Skip to content

Commit db1f4c9

Browse files
committed
Added drawSemaphore in systemViewDestroyed
1 parent 32d6486 commit db1f4c9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

engine/core/Engine.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,8 @@ void Engine::systemDraw(){
568568
}
569569

570570
void Engine::systemViewDestroyed(){
571+
drawSemaphore.acquire();
572+
571573
viewLoaded = false;
572574
Engine::onViewDestroyed.call();
573575

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

581583
TexturePool::clear();
582584
ShaderPool::clear();
585+
586+
drawSemaphore.release();
583587
}
584588

585589
void Engine::systemShutdown(){

0 commit comments

Comments
 (0)