From 4aee773d9b95ef777125d14948ccff440912690e Mon Sep 17 00:00:00 2001 From: UjinT34 <41110182+UjinT34@users.noreply.github.com> Date: Sat, 7 Mar 2026 21:56:55 +0300 Subject: renderer: fix sdr mod (#13630) --- src/render/OpenGL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/render/OpenGL.cpp') diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp index 9cee975b..3c61e3c3 100644 --- a/src/render/OpenGL.cpp +++ b/src/render/OpenGL.cpp @@ -1353,7 +1353,7 @@ WP CHyprOpenGLImpl::renderToFBInternal(const STextureRenderData& data, if (maxLuminance >= dstMaxLuminance * 1.01) shaderFeatures |= SH_FEAT_TONEMAP; - if (data.finalMonitorCM && + if (!data.finalMonitorCM && (SOURCE_IMAGE_DESCRIPTION->value().transferFunction == CM_TRANSFER_FUNCTION_SRGB || SOURCE_IMAGE_DESCRIPTION->value().transferFunction == CM_TRANSFER_FUNCTION_GAMMA22) && TARGET_IMAGE_DESCRIPTION->value().transferFunction == CM_TRANSFER_FUNCTION_ST2084_PQ && -- cgit v1.2.3