From b468fa411d4932f95c2d0d658f3171391ffcbabf Mon Sep 17 00:00:00 2001 From: hyzboy Date: Thu, 23 Sep 2021 15:29:28 +0800 Subject: [PATCH] forced use SRGB_NONLINEAR color_space. --- src/SceneGraph/Vulkan/VKDeviceAttribute.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SceneGraph/Vulkan/VKDeviceAttribute.cpp b/src/SceneGraph/Vulkan/VKDeviceAttribute.cpp index c7100cc8..f6d22827 100644 --- a/src/SceneGraph/Vulkan/VKDeviceAttribute.cpp +++ b/src/SceneGraph/Vulkan/VKDeviceAttribute.cpp @@ -96,7 +96,8 @@ void GPUDeviceAttribute::Refresh() for(uint32_t i=0;iformat>surface_format.format) + if(sf->format>surface_format.format + &&sf->colorSpace==VK_COLOR_SPACE_SRGB_NONLINEAR_KHR) surface_format=*sf; ++sf;