diff options
author | Dave Parks <davep@lindenlab.com> | 2011-11-16 15:25:09 -0600 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-11-16 15:25:09 -0600 |
commit | b2824aa21dc52aa4db5374fa3b8084e34a280747 (patch) | |
tree | b54a881c3572ebccdd5701cab714e307cbf2ab8c | |
parent | 986dccbeafa3fe0ddd9a05e0916a414e4abc51d6 (diff) |
SH-2690 Add comments per Vir's review feedback
-rw-r--r-- | indra/llrender/llrender.cpp | 2 | ||||
-rw-r--r-- | indra/newview/llselectmgr.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/indra/llrender/llrender.cpp b/indra/llrender/llrender.cpp index 010d3df9b7..812fa7024b 100644 --- a/indra/llrender/llrender.cpp +++ b/indra/llrender/llrender.cpp @@ -1888,7 +1888,7 @@ void LLRender::vertex3f(const GLfloat& x, const GLfloat& y, const GLfloat& z) { //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; diff --git a/indra/newview/llselectmgr.cpp b/indra/newview/llselectmgr.cpp index 036e428415..5d0d1ef9a3 100644 --- a/indra/newview/llselectmgr.cpp +++ b/indra/newview/llselectmgr.cpp @@ -5717,7 +5717,7 @@ void LLSelectNode::renderOneSilhouette(const LLColor4 &color) 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(); } |