cm: block DS for scRGB in HDR mode (#13262)

This commit is contained in:
Dominick DiMaggio 2026-02-17 08:57:46 -05:00 committed by GitHub
parent 661314e134
commit 0de216e783
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1819,7 +1819,7 @@ uint16_t CMonitor::isDSBlocked(bool full) {
const bool surfaceIsScRGB = surfaceIsHDR && PSURFACE->m_colorManagement->isWindowsScRGB();
if (needsCM() && (*PNONSHADER != CM_NS_IGNORE || surfaceIsScRGB) && !canNoShaderCM() &&
((inHDR() && (*PPASS == 0 || !surfaceIsHDR)) || (!inHDR() && (*PPASS != 1 || surfaceIsHDR))))
((inHDR() && (*PPASS == 0 || !surfaceIsHDR || surfaceIsScRGB)) || (!inHDR() && (*PPASS != 1 || surfaceIsHDR))))
reasons |= DS_BLOCK_CM;
return reasons;