Add resized flag to base class
This commit is contained in:
parent
ee946e2abf
commit
9e22fe7b0d
2 changed files with 2 additions and 0 deletions
|
|
@ -2124,6 +2124,7 @@ void VulkanExampleBase::windowResize()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
prepared = false;
|
prepared = false;
|
||||||
|
resized = true;
|
||||||
|
|
||||||
// Ensure all operations on the device have been finished before destroying resources
|
// Ensure all operations on the device have been finished before destroying resources
|
||||||
vkDeviceWaitIdle(device);
|
vkDeviceWaitIdle(device);
|
||||||
|
|
|
||||||
|
|
@ -152,6 +152,7 @@ protected:
|
||||||
std::vector<VkFence> waitFences;
|
std::vector<VkFence> waitFences;
|
||||||
public:
|
public:
|
||||||
bool prepared = false;
|
bool prepared = false;
|
||||||
|
bool resized = false;
|
||||||
uint32_t width = 1280;
|
uint32_t width = 1280;
|
||||||
uint32_t height = 720;
|
uint32_t height = 720;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue