File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -790,7 +790,8 @@ bool LLPipeline::allocateScreenBufferInternal(U32 resX, U32 resY)
790
790
{
791
791
LL_PROFILE_ZONE_SCOPED_CATEGORY_DISPLAY;
792
792
793
- bool hdr = gGLManager .mGLVersion > 4 .05f && gSavedSettings .getBOOL (" RenderHDREnabled" );
793
+ static LLCachedControl<bool > render_hdr (gSavedSettings , " RenderHDREnabled" , true );
794
+ bool hdr = gGLManager .mGLVersion > 4 .05f && render_hdr;
794
795
795
796
if (mRT == &mMainRT )
796
797
{ // hacky -- allocate auxillary buffer
@@ -906,7 +907,8 @@ bool LLPipeline::allocateScreenBufferInternal(U32 resX, U32 resY)
906
907
mBakeMap .allocate (LLAvatarAppearanceDefines::SCRATCH_TEX_WIDTH, LLAvatarAppearanceDefines::SCRATCH_TEX_HEIGHT, GL_RGBA);
907
908
}
908
909
// HACK make screenbuffer allocations start failing after 30 seconds
909
- if (gSavedSettings .getBOOL (" SimulateFBOFailure" ))
910
+ static LLCachedControl<bool > simulate_fbo_failure (gSavedSettings , " SimulateFBOFailure" , false );
911
+ if (simulate_fbo_failure)
910
912
{
911
913
return false ;
912
914
}
You can’t perform that action at this time.
0 commit comments