- Fix vk_hdr looking for the wrong colorspace

This commit is contained in:
Magnus Norddahl 2020-02-15 09:43:39 +01:00
commit dd2d9f4182
3 changed files with 18 additions and 29 deletions

View file

@ -220,7 +220,7 @@ void VkPostprocess::DrawPresentTexture(const IntRect &box, bool applyGamma, bool
uniforms.Offset = { 0.0f, 1.0f };
}
if (applyGamma && fb->swapChain->swapChainFormat.colorSpace == VK_COLOR_SPACE_HDR10_ST2084_EXT && !screenshot)
if (applyGamma && fb->swapChain->IsHdrModeActive() && !screenshot)
{
uniforms.HdrMode = 1;
}