fix: (web) add emscripten guards for flushAndWait call when swapchain destroyed
This commit is contained in:
@@ -806,7 +806,11 @@ namespace thermion_filament
|
||||
_swapChain = nullptr;
|
||||
Log("Swapchain destroyed.");
|
||||
}
|
||||
#ifdef __EMSCRIPTEN__
|
||||
_engine->execute();
|
||||
#else
|
||||
_engine->flushAndWait();
|
||||
#endif
|
||||
}
|
||||
|
||||
void FilamentViewer::clearEntities()
|
||||
|
||||
Reference in New Issue
Block a user