steamcompmgr: Remove heatmap hard flag when GAMESCOPE_DEBUG_HDR_HEATMAP is set

This commit is contained in:
Joshua Ashton 2023-08-18 00:58:13 +01:00
parent 22618ea084
commit 77d943294f

View file

@ -5280,6 +5280,7 @@ handle_property_notify(xwayland_ctx_t *ctx, XPropertyEvent *ev)
uint32_t heatmap = get_prop( ctx, ctx->root, ctx->atoms.gamescopeDebugHDRHeatmap, 0 );
g_uCompositeDebug &= ~CompositeDebugFlag::Heatmap;
g_uCompositeDebug &= ~CompositeDebugFlag::Heatmap_MSWCG;
g_uCompositeDebug &= ~CompositeDebugFlag::Heatmap_Hard;
if (heatmap != 0)
g_uCompositeDebug |= CompositeDebugFlag::Heatmap;
if (heatmap == 2)