diff options
author | SmileTheory <SmileTheory@gmail.com> | 2014-10-16 00:32:20 -0700 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2015-03-17 11:38:54 +0000 |
commit | c95e4d4b9ac8a6e944f584563a0ba1a5de636cab (patch) | |
tree | 3dcf8bd0d36675298f5a6922c2a0375d50187970 /src/renderergl2/tr_shade.c | |
parent | f2f0e850f1920d33f20dda3e6e9fe93a0315f3f5 (diff) |
OpenGL2: Bit of multidraw optimization.
Diffstat (limited to 'src/renderergl2/tr_shade.c')
-rw-r--r-- | src/renderergl2/tr_shade.c | 2 |
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); } |