summaryrefslogtreecommitdiff
path: root/indra/llrender
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-11-16 15:25:09 -0600
committerDave Parks <davep@lindenlab.com>2011-11-16 15:25:09 -0600
commitb2824aa21dc52aa4db5374fa3b8084e34a280747 (patch)
treeb54a881c3572ebccdd5701cab714e307cbf2ab8c /indra/llrender
parent986dccbeafa3fe0ddd9a05e0916a414e4abc51d6 (diff)
SH-2690 Add comments per Vir's review feedback
Diffstat (limited to 'indra/llrender')
-rw-r--r--indra/llrender/llrender.cpp2
1 files changed, 1 insertions, 1 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;