Commits

davep  committed d816e23

SH-2690 Add comments per Vir's review feedback

  • Participants
  • Parent commits c51eeec

Comments (0)

Files changed (2)

File indra/llrender/llrender.cpp

 { 
 	//the range of mVerticesp, mColorsp and mTexcoordsp is [0, 4095]
 	if (mCount > 2048)
-	{
+	{ //break when buffer gets reasonably full to keep GL command buffers happy and avoid overflow below
 		switch (mMode)
 		{
 			case LLRender::POINTS: flush(); break;

File indra/newview/llselectmgr.cpp

 	LLGLSLShader* shader = LLGLSLShader::sCurBoundShaderPtr;
 
 	if (shader)
-	{
+	{ //switch to "solid color" program for SH-2690 -- works around driver bug causing bad triangles when rendering silhouettes
 		gSolidColorProgram.bind();
 	}