diff options
author | mobserveur <mobserveur@gmail.com> | 2025-09-08 17:26:53 +0200 |
---|---|---|
committer | mobserveur <mobserveur@gmail.com> | 2025-09-08 17:26:53 +0200 |
commit | ccf0114f36968d6cf6dfb11e1c5a035406314924 (patch) | |
tree | 50edc786a62ee0b1e2aa6bf06251b655806123f3 /indra/newview/llviewerdisplay.cpp | |
parent | 7f0c81918575d3f05e4eadc160b600eaa8b383d1 (diff) |
Optimisations and experimental HDR display support on mac
This commit completes the previous ones for performance optimisations,
and adds HDR display support on mac
Diffstat (limited to 'indra/newview/llviewerdisplay.cpp')
-rw-r--r-- | indra/newview/llviewerdisplay.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/llviewerdisplay.cpp b/indra/newview/llviewerdisplay.cpp index fb060307cd..bd1fc46f5d 100644 --- a/indra/newview/llviewerdisplay.cpp +++ b/indra/newview/llviewerdisplay.cpp @@ -1690,6 +1690,10 @@ void render_ui_3d() gUIProgram.bind(); gGL.color4f(1.f, 1.f, 1.f, 1.f); + static LLCachedControl<bool> hdrDisplay(gSavedSettings, "MPHDRDisplay"); + static LLCachedControl<F32> hdrUIBoost(gSavedSettings, "MPHDRUIBoost"); + if(hdrDisplay) gUIProgram.uniform1f(LLShaderMgr::MP_HDR_BOOST, (GLfloat)hdrUIBoost); + // Coordinate axes static LLCachedControl<bool> show_axes(gSavedSettings, "ShowAxes"); if (show_axes()) |