summaryrefslogtreecommitdiff
path: root/src/renderergl2/tr_shade.c
diff options
context:
space:
mode:
authorSmileTheory <SmileTheory@gmail.com>2014-10-16 00:32:20 -0700
committerTim Angus <tim@ngus.net>2015-03-17 11:38:54 +0000
commitc95e4d4b9ac8a6e944f584563a0ba1a5de636cab (patch)
tree3dcf8bd0d36675298f5a6922c2a0375d50187970 /src/renderergl2/tr_shade.c
parentf2f0e850f1920d33f20dda3e6e9fe93a0315f3f5 (diff)
OpenGL2: Bit of multidraw optimization.
Diffstat (limited to 'src/renderergl2/tr_shade.c')
-rw-r--r--src/renderergl2/tr_shade.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/renderergl2/tr_shade.c b/src/renderergl2/tr_shade.c
index b66fb10d..5752c4ff 100644
--- a/src/renderergl2/tr_shade.c
+++ b/src/renderergl2/tr_shade.c
@@ -55,7 +55,7 @@ void R_DrawElementsVao( int numIndexes, glIndex_t firstIndex, glIndex_t minIndex
static void R_DrawMultiElementsVao( int multiDrawPrimitives, glIndex_t *multiDrawMinIndex, glIndex_t *multiDrawMaxIndex,
GLsizei *multiDrawNumIndexes, glIndex_t **multiDrawFirstIndex)
{
- if (glRefConfig.multiDrawArrays)
+ if (glRefConfig.multiDrawArrays && multiDrawPrimitives > 1)
{
qglMultiDrawElementsEXT(GL_TRIANGLES, multiDrawNumIndexes, GL_INDEX_TYPE, (const GLvoid **)multiDrawFirstIndex, multiDrawPrimitives);
}