Converted some frequent setting lookups to LLCachedControl
This commit is contained in:
@@ -2126,7 +2126,7 @@ bool LLViewerFetchedTexture::updateFetch()
|
||||
c = mComponents;
|
||||
}
|
||||
|
||||
const U32 override_tex_discard_level = gSavedSettings.getU32("TextureDiscardLevel");
|
||||
static const LLCachedControl<U32> override_tex_discard_level("TextureDiscardLevel");
|
||||
if (override_tex_discard_level != 0)
|
||||
{
|
||||
desired_discard = override_tex_discard_level;
|
||||
|
||||
Reference in New Issue
Block a user