diff options
author | Dave Parks <davep@lindenlab.com> | 2010-03-20 16:56:36 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2010-03-20 16:56:36 -0500 |
commit | 06e3d288e40e46204d84aed9c548a6ca529e78d8 (patch) | |
tree | eefa1c0d28da4593576131eb89f6d47c7f0b309b /indra/newview/pipeline.cpp | |
parent | 08ae65fbd700646a5c2b6ed6764f372ef8b91082 (diff) |
Tweak detail settings and make graphics preferences widget enabling respect requirements.
Diffstat (limited to 'indra/newview/pipeline.cpp')
-rw-r--r-- | indra/newview/pipeline.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index 5cfd6c3d38..26670351c6 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -409,6 +409,8 @@ void LLPipeline::init() { mSpotLightFade[i] = 1.f; } + + setLightingDetail(-1); } LLPipeline::~LLPipeline() @@ -905,13 +907,18 @@ S32 LLPipeline::setLightingDetail(S32 level) if (level < 0) { - level = gSavedSettings.getS32("RenderLightingDetail"); + if (gSavedSettings.getBOOL("VertexShaderEnable")) + { + level = 1; + } + else + { + level = 0; + } } level = llclamp(level, 0, getMaxLightingDetail()); if (level != mLightingDetail) { - gSavedSettings.setS32("RenderLightingDetail", level); - mLightingDetail = level; if (mVertexShadersLoaded == 1) |