From e1e23eb9bdeed9d4d166e6d7bf07e0be983728f4 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sat, 2 Aug 2025 14:35:14 +0200 Subject: [PATCH] screencopy: avoid crash on cm disabled fixes #11310 closes #11312 --- src/protocols/Screencopy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocols/Screencopy.cpp b/src/protocols/Screencopy.cpp index a9e0e5b3..ffaca4d2 100644 --- a/src/protocols/Screencopy.cpp +++ b/src/protocols/Screencopy.cpp @@ -196,7 +196,7 @@ void CScreencopyFrame::renderMon() { CRegion fakeDamage = {0, 0, INT16_MAX, INT16_MAX}; - const bool IS_CM_AWARE = PROTO::colorManagement->isClientCMAware(m_client->client()); + const bool IS_CM_AWARE = PROTO::colorManagement && PROTO::colorManagement->isClientCMAware(m_client->client()); CBox monbox = CBox{0, 0, m_monitor->m_pixelSize.x, m_monitor->m_pixelSize.y} .translate({-m_box.x, -m_box.y}) // vvvv kinda ass-backwards but that's how I designed the renderer... sigh.