diff --git a/base/vulkanexamplebase.cpp b/base/vulkanexamplebase.cpp index 51c3f09e..d445391c 100644 --- a/base/vulkanexamplebase.cpp +++ b/base/vulkanexamplebase.cpp @@ -2124,6 +2124,7 @@ void VulkanExampleBase::windowResize() return; } prepared = false; + resized = true; // Ensure all operations on the device have been finished before destroying resources vkDeviceWaitIdle(device); diff --git a/base/vulkanexamplebase.h b/base/vulkanexamplebase.h index 57fbc3d6..c402f6b7 100644 --- a/base/vulkanexamplebase.h +++ b/base/vulkanexamplebase.h @@ -152,6 +152,7 @@ protected: std::vector waitFences; public: bool prepared = false; + bool resized = false; uint32_t width = 1280; uint32_t height = 720;