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 10cab8dcb4
commit aa17962936

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()