forked from pupbrained/vulkan-test
oops
This commit is contained in:
parent
e3cc2bd8f3
commit
6711f4b6e0
10
src/main.cpp
10
src/main.cpp
|
@ -702,10 +702,12 @@ class VulkanApp {
|
||||||
u32 width = 0, height = 0;
|
u32 width = 0, height = 0;
|
||||||
std::tie(width, height) = mWindow->getFramebufferSize();
|
std::tie(width, height) = mWindow->getFramebufferSize();
|
||||||
|
|
||||||
vk::Extent2D actualExtent = {
|
vk::Extent2D actualExtent = { width, height };
|
||||||
std::clamp(actualExtent.width, capabilities.minImageExtent.width, capabilities.maxImageExtent.width),
|
|
||||||
std::clamp(actualExtent.height, capabilities.minImageExtent.height, capabilities.maxImageExtent.height)
|
actualExtent.width =
|
||||||
};
|
std::clamp(actualExtent.width, capabilities.minImageExtent.width, capabilities.maxImageExtent.width);
|
||||||
|
actualExtent.height =
|
||||||
|
std::clamp(actualExtent.height, capabilities.minImageExtent.height, capabilities.maxImageExtent.height);
|
||||||
|
|
||||||
return actualExtent;
|
return actualExtent;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue