main: support for Wayland surfaceCapabilities
This commit is contained in:
parent
fbe6b157ff
commit
6731129670
@ -200,6 +200,10 @@ void recreateSwapchain(VkSurfaceFormatKHR surfaceFormat, VkFormat depthFormat, V
|
|||||||
.width = surfaceCapabilities.currentExtent.width,
|
.width = surfaceCapabilities.currentExtent.width,
|
||||||
.height = surfaceCapabilities.currentExtent.height,
|
.height = surfaceCapabilities.currentExtent.height,
|
||||||
};
|
};
|
||||||
|
if ((imageExtent.width == ~0u) && (imageExtent.width == ~0u)) {
|
||||||
|
imageExtent.width = windowSize.x;
|
||||||
|
imageExtent.height = windowSize.y;
|
||||||
|
}
|
||||||
VkFormat imageFormat{ surfaceFormat.format };
|
VkFormat imageFormat{ surfaceFormat.format };
|
||||||
VkColorSpaceKHR imageColorSpace{ surfaceFormat.colorSpace };
|
VkColorSpaceKHR imageColorSpace{ surfaceFormat.colorSpace };
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user