steamcompmgr: Fix cached value of ST2084 support

This commit is contained in:
Joshua Ashton 2022-12-31 09:59:18 +00:00
parent 8f0008e3a6
commit 1fea04e073

View file

@ -5468,7 +5468,7 @@ void update_vrr_atoms(xwayland_ctx_t *root_ctx, bool force)
uint32_t hdr_value = st2084 ? 1 : 0; uint32_t hdr_value = st2084 ? 1 : 0;
XChangeProperty(root_ctx->dpy, root_ctx->root, root_ctx->atoms.gamescopeDisplaySupportsHDR, XA_CARDINAL, 32, PropModeReplace, XChangeProperty(root_ctx->dpy, root_ctx->root, root_ctx->atoms.gamescopeDisplaySupportsHDR, XA_CARDINAL, 32, PropModeReplace,
(unsigned char *)&hdr_value, 1 ); (unsigned char *)&hdr_value, 1 );
g_bSupportsST2084_CachedValue = capable; g_bSupportsST2084_CachedValue = st2084;
} }
bool in_use = drm_get_vrr_in_use( &g_DRM ); bool in_use = drm_get_vrr_in_use( &g_DRM );