summaryrefslogtreecommitdiff
path: root/indra/llrender/llrender.cpp
diff options
context:
space:
mode:
authorsimon_linden <none@none>2013-09-19 15:30:34 -0700
committersimon_linden <none@none>2013-09-19 15:30:34 -0700
commitd3625d0b672d59b0164e1b4615edbb9550912ec6 (patch)
tree292f86a4e1dc65d57faee094f5365bf72a240846 /indra/llrender/llrender.cpp
parent8fa463113c19682a64988d2f8c527ef5e5dd156c (diff)
parent95e34d86b9d86b3b3c7d3c39620e35b06f8fa9cf (diff)
Merge downstream code
Diffstat (limited to 'indra/llrender/llrender.cpp')
-rwxr-xr-xindra/llrender/llrender.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/indra/llrender/llrender.cpp b/indra/llrender/llrender.cpp
index 3393d352de..aa94110f4d 100755
--- a/indra/llrender/llrender.cpp
+++ b/indra/llrender/llrender.cpp
@@ -1872,33 +1872,33 @@ void LLRender::flush()
//store mCount in a local variable to avoid re-entrance (drawArrays may call flush)
U32 count = mCount;
- if (mMode == LLRender::QUADS && !sGLCoreProfile)
- {
- if (mCount%4 != 0)
+ if (mMode == LLRender::QUADS && !sGLCoreProfile)
{
+ if (mCount%4 != 0)
+ {
count -= (mCount % 4);
llwarns << "Incomplete quad requested." << llendl;
+ }
}
- }
-
- if (mMode == LLRender::TRIANGLES)
- {
- if (mCount%3 != 0)
+
+ if (mMode == LLRender::TRIANGLES)
{
+ if (mCount%3 != 0)
+ {
count -= (mCount % 3);
llwarns << "Incomplete triangle requested." << llendl;
+ }
}
- }
-
- if (mMode == LLRender::LINES)
- {
- if (mCount%2 != 0)
+
+ if (mMode == LLRender::LINES)
{
+ if (mCount%2 != 0)
+ {
count -= (mCount % 2);
llwarns << "Incomplete line requested." << llendl;
}
}
-
+
mCount = 0;
if (mBuffer->useVBOs() && !mBuffer->isLocked())