forced use SRGB_NONLINEAR color_space.

This commit is contained in:
hyzboy 2021-09-23 15:29:28 +08:00
parent b9df5bdf8c
commit b468fa411d

View File

@ -96,7 +96,8 @@ void GPUDeviceAttribute::Refresh()
for(uint32_t i=0;i<format_count;i++) for(uint32_t i=0;i<format_count;i++)
{ {
if(sf->format>surface_format.format) if(sf->format>surface_format.format
&&sf->colorSpace==VK_COLOR_SPACE_SRGB_NONLINEAR_KHR)
surface_format=*sf; surface_format=*sf;
++sf; ++sf;