diff options
| author | Xiaohong Bao <bao@lindenlab.com> | 2011-06-08 17:50:35 -0600 | 
|---|---|---|
| committer | Xiaohong Bao <bao@lindenlab.com> | 2011-06-08 17:50:35 -0600 | 
| commit | f96f223112b7a50336fe153d2e0408caa9ce3390 (patch) | |
| tree | e7d0fe9c13b78e2ae2961ef063faefcfc98c6ff2 | |
| parent | d3aa36f1d478d51790e0fdf604e590baa04a93a4 (diff) | |
fix for SH-1561: Enabling show Physics Shape disables glow
| -rw-r--r-- | indra/newview/pipeline.cpp | 15 | 
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() ;  	}  } | 
