summaryrefslogtreecommitdiff
path: root/indra/newview/pipeline.cpp
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2011-06-08 17:50:35 -0600
committerXiaohong Bao <bao@lindenlab.com>2011-06-08 17:50:35 -0600
commitf96f223112b7a50336fe153d2e0408caa9ce3390 (patch)
treee7d0fe9c13b78e2ae2961ef063faefcfc98c6ff2 /indra/newview/pipeline.cpp
parentd3aa36f1d478d51790e0fdf604e590baa04a93a4 (diff)
fix for SH-1561: Enabling show Physics Shape disables glow
Diffstat (limited to 'indra/newview/pipeline.cpp')
-rw-r--r--indra/newview/pipeline.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index 1489c033e2..4d678117a5 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -773,14 +773,29 @@ void LLPipeline::updateRenderDeferred()
//static
void LLPipeline::refreshRenderDeferred()
{
+ static BOOL physics_shapes_is_on = FALSE ;
+ static BOOL render_glow_copy = FALSE ;
+
if(gPipeline.hasRenderDebugMask(LLPipeline::RENDER_DEBUG_PHYSICS_SHAPES))
{
+ if(!physics_shapes_is_on)
+ {
+ physics_shapes_is_on = TRUE ;
+ render_glow_copy = sRenderGlow ;
+ }
+
//turn the deferred rendering and glow off when draw physics shapes.
sRenderDeferred = FALSE ;
sRenderGlow = FALSE ;
}
else
{
+ if(physics_shapes_is_on)
+ {
+ physics_shapes_is_on = FALSE ;
+ sRenderGlow = render_glow_copy ;
+ }
+
updateRenderDeferred() ;
}
}