Skip to content

Commit 2f7c189

Browse files
committed
Use LLCachedControl in render path
1 parent e65c426 commit 2f7c189

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

indra/newview/pipeline.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,8 @@ bool LLPipeline::allocateScreenBufferInternal(U32 resX, U32 resY)
790790
{
791791
LL_PROFILE_ZONE_SCOPED_CATEGORY_DISPLAY;
792792

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;
794795

795796
if (mRT == &mMainRT)
796797
{ // hacky -- allocate auxillary buffer
@@ -906,7 +907,8 @@ bool LLPipeline::allocateScreenBufferInternal(U32 resX, U32 resY)
906907
mBakeMap.allocate(LLAvatarAppearanceDefines::SCRATCH_TEX_WIDTH, LLAvatarAppearanceDefines::SCRATCH_TEX_HEIGHT, GL_RGBA);
907908
}
908909
//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)
910912
{
911913
return false;
912914
}

0 commit comments

Comments
 (0)