File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -7847,7 +7847,11 @@ void LLPipeline::renderFinalize()
7847
7847
gGL .setColorMask (true , true );
7848
7848
glClearColor (0 , 0 , 0 , 0 );
7849
7849
7850
- bool hdr = gGLManager .mGLVersion > 4 .05f && gSavedSettings .getBOOL (" RenderHDREnabled" );
7850
+ LLRenderTarget* src = &mPostPingMap ;
7851
+ LLRenderTarget* dest = &mPostPongMap ;
7852
+
7853
+ static LLCachedControl<bool > render_hdr (gSavedSettings , " RenderHDREnabled" , true );
7854
+ bool hdr = gGLManager .mGLVersion > 4 .05f && render_hdr;
7851
7855
7852
7856
if (hdr)
7853
7857
{
@@ -7857,9 +7861,6 @@ void LLPipeline::renderFinalize()
7857
7861
7858
7862
generateExposure (&mLuminanceMap , &mExposureMap );
7859
7863
7860
- LLRenderTarget* src = &mPostPingMap ;
7861
- LLRenderTarget* dest = &mPostPongMap ;
7862
-
7863
7864
static LLCachedControl<bool > render_cas (gSavedSettings , " RenderCAS" , true );
7864
7865
if (render_cas && gCASProgram .isComplete ())
7865
7866
{
You can’t perform that action at this time.
0 commit comments