diff options
author | Dave Parks <davep@lindenlab.com> | 2012-10-17 13:29:15 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2012-10-17 13:29:15 -0500 |
commit | 161c848e3d78a1ec6265b33b3d9f999dd11126f9 (patch) | |
tree | 2bf007bfc629a84854245ad0b66eec63cc9a8807 /indra/newview/pipeline.cpp | |
parent | b19a5c192fbbfb2e94c8dacc9db6808f47bbfd07 (diff) |
MAINT-643 Cleanup some shader compilation errors when atmospheric shaders are enabled.
Diffstat (limited to 'indra/newview/pipeline.cpp')
-rw-r--r-- | indra/newview/pipeline.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index 38e6b84f44..eb4f440951 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -6045,7 +6045,7 @@ void LLPipeline::enableLightsPreview() LLVector4 light_pos(dir0, 0.0f); - LLLightState* light = gGL.getLight(0); + LLLightState* light = gGL.getLight(1); light->enable(); light->setPosition(light_pos); @@ -6057,7 +6057,7 @@ void LLPipeline::enableLightsPreview() light_pos = LLVector4(dir1, 0.f); - light = gGL.getLight(1); + light = gGL.getLight(2); light->enable(); light->setPosition(light_pos); light->setDiffuse(diffuse1); @@ -6067,7 +6067,7 @@ void LLPipeline::enableLightsPreview() light->setSpotCutoff(180.f); light_pos = LLVector4(dir2, 0.f); - light = gGL.getLight(2); + light = gGL.getLight(3); light->enable(); light->setPosition(light_pos); light->setDiffuse(diffuse2); |