mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-11 22:53:34 +00:00
fixing msvc compilation issue
This commit is contained in:
8
third_party/kvf.h
vendored
8
third_party/kvf.h
vendored
@@ -1921,9 +1921,13 @@ void kvfDestroySemaphore(VkDevice device, VkSemaphore semaphore)
|
||||
if(support->formats_count == 1 && support->formats[0].format == VK_FORMAT_UNDEFINED)
|
||||
{
|
||||
// If the list contains one undefined format, it means any format can be used
|
||||
VkSurfaceFormatKHR format;
|
||||
format.colorSpace = VK_COLOR_SPACE_SRGB_NONLINEAR_KHR;
|
||||
if(srgb)
|
||||
return (VkSurfaceFormatKHR){ .format = VK_FORMAT_R8G8B8A8_SRGB, .colorSpace = VK_COLOR_SPACE_SRGB_NONLINEAR_KHR };
|
||||
return (VkSurfaceFormatKHR){ .format = VK_FORMAT_R8G8B8A8_UNORM, .colorSpace = VK_COLOR_SPACE_SRGB_NONLINEAR_KHR };
|
||||
format.format = VK_FORMAT_R8G8B8A8_SRGB;
|
||||
else
|
||||
format.format = VK_FORMAT_R8G8B8A8_UNORM;
|
||||
return format
|
||||
|
||||
}
|
||||
for(uint32_t i = 0; i < support->formats_count; i++)
|
||||
|
||||
Reference in New Issue
Block a user