fix: (web) add emscripten guards for flushAndWait call when swapchain destroyed

This commit is contained in:
Nick Fisher
2024-08-21 17:18:37 +08:00
parent d7664a9746
commit 98c3676fdf

View File

@@ -806,7 +806,11 @@ namespace thermion_filament
_swapChain = nullptr;
Log("Swapchain destroyed.");
}
#ifdef __EMSCRIPTEN__
_engine->execute();
#else
_engine->flushAndWait();
#endif
}
void FilamentViewer::clearEntities()