Commit 18fb3e70 authored by Jakob Bornecrantz's avatar Jakob Bornecrantz
Browse files

c/main: Lower priority on sRGB format

This works around a bug in the OpenXR CTS and mirrors better what at least on
other OpenXR runtime does.
parent 666caaa7
main: Lower priority on sRGB format. This works around a bug in the OpenXR CTS
and mirrors better what at least on other OpenXR runtime does.
......@@ -1416,9 +1416,9 @@ xrt_gfx_provider_create_system(struct xrt_device *xdev, struct xrt_system_compos
uint32_t formats = 0;
// color formats
ADD_IF_SUPPORTED(VK_FORMAT_R8G8B8A8_SRGB); // OGL VK
ADD_IF_SUPPORTED(VK_FORMAT_A2B10G10R10_UNORM_PACK32); // OGL VK
ADD_IF_SUPPORTED(VK_FORMAT_R16G16B16A16_SFLOAT); // OGL VK
ADD_IF_SUPPORTED(VK_FORMAT_R8G8B8A8_SRGB); // OGL VK
ADD_IF_SUPPORTED(VK_FORMAT_B8G8R8A8_SRGB); // VK
ADD_IF_SUPPORTED(VK_FORMAT_R8G8B8A8_UNORM); // OGL VK
ADD_IF_SUPPORTED(VK_FORMAT_B8G8R8A8_UNORM); // VK
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment