mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 06:10:56 +00:00
[vulkan] Search for BGRA8 instead of RGBA8
I guess nvidia gives a non-srgb format as the first in the list, but my laptop gives an srgb format first, thus the unexpected difference in rendering brightness. Hard-coding BGRA isn't any better, but it will do for now.
This commit is contained in:
parent
7a91c905e0
commit
edc1326736
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ QFV_CreateSwapchain (vulkan_ctx_t *ctx, VkSwapchainKHR old_swapchain)
|
||||||
ifuncs->vkGetPhysicalDeviceSurfaceFormatsKHR (physDev,
|
ifuncs->vkGetPhysicalDeviceSurfaceFormatsKHR (physDev,
|
||||||
ctx->surface,
|
ctx->surface,
|
||||||
&numFormats, formats);
|
&numFormats, formats);
|
||||||
VkSurfaceFormatKHR useFormat = {VK_FORMAT_R8G8B8A8_UNORM,
|
VkSurfaceFormatKHR useFormat = {VK_FORMAT_B8G8R8A8_UNORM,
|
||||||
VK_COLOR_SPACE_SRGB_NONLINEAR_KHR};
|
VK_COLOR_SPACE_SRGB_NONLINEAR_KHR};
|
||||||
if (numFormats > 1) {
|
if (numFormats > 1) {
|
||||||
uint32_t i;
|
uint32_t i;
|
||||||
|
|
Loading…
Reference in a new issue