Skip to content

Commit

Permalink
vulkan: fix transfer function choice for HDR scRGB on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryp committed Mar 21, 2024
1 parent ed76aab commit 4fc9398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/vulkan/Swapchain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ void configure_vulkan_wm_swapchain(ReaperRoot& root, const VulkanBackend& backen
// Choose surface format
presentInfo.swapchain_format = choose_swapchain_format(root, surface_formats, swapchainDesc.preferredFormat);

if (presentInfo.swapchain_format.color_space == ColorSpace::sRGB)
if (presentInfo.swapchain_format.transfer_function == TransferFunction::sRGB)
{
// In the case of sRGB, the EOTF is usually done with the texture view already, so no need to apply it in
// the shader.
Expand Down

0 comments on commit 4fc9398

Please sign in to comment.