diff options
| author | Dave Parks <davep@lindenlab.com> | 2011-01-05 01:21:04 -0600 | 
|---|---|---|
| committer | Dave Parks <davep@lindenlab.com> | 2011-01-05 01:21:04 -0600 | 
| commit | 9c31fd79fcf5ee8a60b3d074ae0ea8c70b1b4142 (patch) | |
| tree | c25bea92aa8042406c517d51c31ed564ffc833f9 | |
| parent | 808cd0fcbfe017c1212fb0c1d423fa06bb06c148 (diff) | |
SH-571 Fix for mesh shadows blinking on LoD switch.
| -rw-r--r-- | indra/newview/pipeline.cpp | 13 | 
1 files changed, 9 insertions, 4 deletions
| diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index f5e2a5033f..41fa1c4942 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -4136,11 +4136,12 @@ void LLPipeline::renderDebug()  					gGL.vertex3fv(frust[2].mV); gGL.vertex3fv(frust[6].mV);  					gGL.vertex3fv(frust[3].mV); gGL.vertex3fv(frust[7].mV);  					gGL.end(); -					} - +				}  			} -			/*for (LLWorld::region_list_t::const_iterator iter = LLWorld::getInstance()->getRegionList().begin();  +			/*gGL.flush(); +			glLineWidth(16-i*2); +			for (LLWorld::region_list_t::const_iterator iter = LLWorld::getInstance()->getRegionList().begin();   					iter != LLWorld::getInstance()->getRegionList().end(); ++iter)  			{  				LLViewerRegion* region = *iter; @@ -4155,7 +4156,9 @@ void LLPipeline::renderDebug()  						}  					}  				} -			}*/ +			} +			gGL.flush(); +			glLineWidth(1.f);*/  		}  	} @@ -7994,6 +7997,8 @@ void LLPipeline::renderShadow(glh::matrix4f& view, glh::matrix4f& proj, LLCamera  	//glCullFace(GL_FRONT); +	LLVertexBuffer::unbind(); +  	{  		LLFastTimer ftm(FTM_SHADOW_SIMPLE);  		LLGLDisable test(GL_ALPHA_TEST); | 
