color format fix

This commit is contained in:
Jorijn van der Graaf 2026-03-09 23:21:24 +01:00
commit 6effe88733

View file

@ -876,7 +876,7 @@ void Window::CreateSwapchain()
VkImageViewCreateInfo colorAttachmentView = {}; VkImageViewCreateInfo colorAttachmentView = {};
colorAttachmentView.sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO; colorAttachmentView.sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO;
colorAttachmentView.pNext = NULL; colorAttachmentView.pNext = NULL;
colorAttachmentView.format = VK_FORMAT_R8G8B8A8_UNORM; colorAttachmentView.format = colorFormat;
colorAttachmentView.components = { colorAttachmentView.components = {
VK_COMPONENT_SWIZZLE_R, VK_COMPONENT_SWIZZLE_R,
VK_COMPONENT_SWIZZLE_G, VK_COMPONENT_SWIZZLE_G,