diff --git a/src/steamcompmgr.cpp b/src/steamcompmgr.cpp index 3bc73de13f..fe1ed2d318 100644 --- a/src/steamcompmgr.cpp +++ b/src/steamcompmgr.cpp @@ -286,6 +286,15 @@ create_color_mgmt_luts(const gamescope_color_mgmt_t& newColorMgmt, gamescope_col } } +int g_nAsyncFlipsEnabled = 0; +int g_nSteamMaxHeight = 0; +bool g_bVRRCapable_CachedValue = false; +bool g_bVRRInUse_CachedValue = false; +bool g_bSupportsST2084_CachedValue = false; +bool g_bForceHDR10OutputDebug = false; +bool g_bHDREnabled = false; +bool g_bHDRItmEnable = false; + static void update_color_mgmt() { @@ -296,6 +305,13 @@ update_color_mgmt() &g_ColorMgmt.pending.displayColorimetry, &g_ColorMgmt.pending.displayEOTF, &g_ColorMgmt.pending.outputEncodingColorimetry, &g_ColorMgmt.pending.outputEncodingEOTF ); } + else if (g_bForceHDR10OutputDebug) + { + g_ColorMgmt.pending.displayColorimetry = displaycolorimetry_2020; + g_ColorMgmt.pending.displayEOTF = EOTF_PQ; + g_ColorMgmt.pending.outputEncodingColorimetry = displaycolorimetry_2020; + g_ColorMgmt.pending.outputEncodingEOTF = EOTF_PQ; + } else { g_ColorMgmt.pending.displayColorimetry = displaycolorimetry_709; @@ -678,15 +694,6 @@ static std::vector pollfds; #define MWM_TEAROFF_WINDOW 1 -int g_nAsyncFlipsEnabled = 0; -int g_nSteamMaxHeight = 0; -bool g_bVRRCapable_CachedValue = false; -bool g_bVRRInUse_CachedValue = false; -bool g_bSupportsST2084_CachedValue = false; -bool g_bForceHDR10OutputDebug = false; -bool g_bHDREnabled = false; -bool g_bHDRItmEnable = false; - Window x11_win(steamcompmgr_win_t *w) { if (w == nullptr) return None;