reshade: Fix GAMESCOPE_SDR_ON_HDR_NITS define

This commit is contained in:
Joshua Ashton 2023-09-24 07:18:36 +01:00
parent 502f3b3a1a
commit 2aa742b080

View file

@ -795,7 +795,7 @@ bool ReshadeEffectPipeline::init(CVulkanDevice *device, const ReshadeEffectKey &
pp.add_macro_definition("BUFFER_COLOR_SPACE", std::to_string(static_cast<uint32_t>(ConvertToReshadeColorSpace(key.bufferColorSpace)))); pp.add_macro_definition("BUFFER_COLOR_SPACE", std::to_string(static_cast<uint32_t>(ConvertToReshadeColorSpace(key.bufferColorSpace))));
pp.add_macro_definition("BUFFER_COLOR_BIT_DEPTH", std::to_string(GetFormatBitDepth(key.bufferFormat))); pp.add_macro_definition("BUFFER_COLOR_BIT_DEPTH", std::to_string(GetFormatBitDepth(key.bufferFormat)));
pp.add_macro_definition("GAMESCOPE", "1"); pp.add_macro_definition("GAMESCOPE", "1");
pp.add_macro_definition("GAMESCOPE_SDR_ON_HDR_NITS", std::to_string(g_ColorMgmt.pending.outputEncodingEOTF == EOTF_Gamma22 ? g_ColorMgmt.pending.flInternalDisplayBrightness : g_ColorMgmt.pending.flSDROnHDRBrightness)); pp.add_macro_definition("GAMESCOPE_SDR_ON_HDR_NITS", std::to_string(g_ColorMgmt.pending.flSDROnHDRBrightness));
std::string gamescope_reshade_share_path = "/share/gamescope/reshade"; std::string gamescope_reshade_share_path = "/share/gamescope/reshade";