From 34542a29cae164f86df44a42652141b261bafc18 Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Mon, 23 Oct 2023 01:33:47 +1100 Subject: [PATCH] add flushAndWait call to destroySwapChain --- ios/src/FilamentViewer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ios/src/FilamentViewer.cpp b/ios/src/FilamentViewer.cpp index 1c52304e..6908f210 100644 --- a/ios/src/FilamentViewer.cpp +++ b/ios/src/FilamentViewer.cpp @@ -701,6 +701,7 @@ namespace polyvox _swapChain = nullptr; Log("Swapchain destroyed."); } + _engine->flushAndWait(); } void FilamentViewer::clearAssets()