diff options
| author | UjinT34 <41110182+UjinT34@users.noreply.github.com> | 2026-03-07 21:56:55 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-07 18:56:55 +0000 |
| commit | 4aee773d9b95ef777125d14948ccff440912690e (patch) | |
| tree | 2e66c83747f9058e7cd207f5565f487e4ebeb8a9 /src/render/OpenGL.cpp | |
| parent | 3b09986f32ab18c604350307e029ee04d8c114b1 (diff) | |
renderer: fix sdr mod (#13630)
Diffstat (limited to 'src/render/OpenGL.cpp')
| -rw-r--r-- | src/render/OpenGL.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<CShader> 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 && |
