From 9e22fe7b0dc348213a8ad54c42a2491e98d3cb64 Mon Sep 17 00:00:00 2001 From: Sascha Willems Date: Sun, 16 Aug 2020 10:22:45 +0200 Subject: [PATCH] Add resized flag to base class --- base/vulkanexamplebase.cpp | 1 + base/vulkanexamplebase.h | 1 + 2 files changed, 2 insertions(+) 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;