summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2019-05-29 07:54:32 -0700
committerGraham Linden <graham@lindenlab.com>2019-05-29 07:54:32 -0700
commit1b152d5114a048c7e79e0d9baff65a7867ccada9 (patch)
treedbd668e0d1d0d859a3973ff47c559f9632618c3f /indra/newview
parent47ceaa3d0989c8010f960f9e600d9cf0b7a2048a (diff)
Clang wants parens. Clang gets parens.
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/pipeline.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index f903fdb570..b01e148fca 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -6334,7 +6334,7 @@ void LLPipeline::setupHWLights(LLDrawPool* pool)
LLVector4 light_pos_gl(light_pos, 1.0f);
F32 light_radius = llmax(light->getLightRadius(), 0.001f);
- F32 size = light_radius * sRenderDeferred ? 1.5f : 1.0f;
+ F32 size = light_radius * (sRenderDeferred ? 1.5f : 1.0f);
if (size <= 0.001f)
{
@@ -6345,7 +6345,7 @@ void LLPipeline::setupHWLights(LLDrawPool* pool)
F32 linatten = x / (light_radius); // % of brightness at radius
// get falloff to match for forward deferred rendering lights
- F32 falloff = light->getLightFalloff()*0.5f + sRenderDeferred ? 0.0 : 1.f;
+ F32 falloff = light->getLightFalloff() * 0.5f + (sRenderDeferred ? 0.0 : 1.f);
mHWLightColors[cur_light] = light_color;
LLLightState* light_state = gGL.getLight(cur_light);