diff options
| author | prep <prep@lindenlab.com> | 2011-12-07 17:56:02 -0500 | 
|---|---|---|
| committer | prep <prep@lindenlab.com> | 2011-12-07 17:56:02 -0500 | 
| commit | 8974278746932fe470e2cbc52511fbc915f1e893 (patch) | |
| tree | bc8323ebdf7c6ceafa10dc808376df299a05d0d9 /indra/newview/pipeline.cpp | |
| parent | 0b99da8ba522da1a4a1e4b6dba24ee8dac42de60 (diff) | |
Turning on navmesh rendering toggles normal renderables
Diffstat (limited to 'indra/newview/pipeline.cpp')
| -rw-r--r-- | indra/newview/pipeline.cpp | 41 | 
1 files changed, 26 insertions, 15 deletions
| diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index 97b69370c9..40cefb8d05 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -3644,13 +3644,37 @@ void LLPipeline::renderGeom(LLCamera& camera, BOOL forceVBOUpdate)  	gGL.getTexUnit(0)->bind(LLViewerFetchedTexture::sDefaultImagep);  	LLViewerFetchedTexture::sDefaultImagep->setAddressMode(LLTexUnit::TAM_WRAP); + +	{ +		//prep# +		enableLightsFullbright(LLColor4(1,1,1,1)); + +		if ( LLPathingLib::getInstance() )  +		{	 +		    +			bool exclusiveDraw = false; +			if ( LLPathingLib::getInstance()->getRenderNavMeshState() ) +			{ +				LLPathingLib::getInstance()->renderNavMesh(); +				exclusiveDraw = true; +			} +			if ( LLPathingLib::getInstance()->getRenderNavMeshandShapesState() ) +			{ +				//LLPathingLib::getInstance()->renderNavMeshShapesVBO(); +				exclusiveDraw = true; +			} + +			if ( exclusiveDraw ) { return; } +		}		 +	} +		  	//////////////////////////////////////////////  	//  	// Actually render all of the geometry  	//  	//	  	stop_glerror(); -	 +  	LLAppViewer::instance()->pingMainloopTimeout("Pipeline:RenderDrawPools");  	for (pool_set_t::iterator iter = mPools.begin(); iter != mPools.end(); ++iter) @@ -3784,20 +3808,7 @@ void LLPipeline::renderGeom(LLCamera& camera, BOOL forceVBOUpdate)  		renderDebug();  		LLVertexBuffer::unbind(); -	 -		//prep# -		if ( LLPathingLib::getInstance() )  -		{		 -			if ( LLPathingLib::getInstance()->getRenderNavMeshState() ) -			{ -				LLPathingLib::getInstance()->renderNavMesh(); -			} -			if ( LLPathingLib::getInstance()->getRenderNavMeshandShapesState() ) -			{ -				LLPathingLib::getInstance()->renderNavMeshandShapes(); -			} -		} - +			  		if (!LLPipeline::sReflectionRender && !LLPipeline::sRenderDeferred)  		{  			if (gPipeline.hasRenderDebugFeatureMask(LLPipeline::RENDER_DEBUG_FEATURE_UI)) | 
