Properly choose swapchain format
This commit is contained in:
parent
c6fd8e49c9
commit
0568c6e5d2
1 changed files with 72 additions and 72 deletions
|
@ -131,7 +131,7 @@ RenderTarget* Renderer::createSurfaceRenderTarget(VkSurfaceKHR surface, RenderTa
|
|||
|
||||
uint32_t chosenFormat = 0;
|
||||
for(uint32_t i = 0; i < surfaceFormatCount; i++) {
|
||||
if(surfaceFormats[i].colorSpace == VK_COLOR_SPACE_SRGB_NONLINEAR_KHR)
|
||||
if(surfaceFormats[i].format == VK_FORMAT_R8G8B8_SRGB)
|
||||
chosenFormat = i;
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue