From c95e4d4b9ac8a6e944f584563a0ba1a5de636cab Mon Sep 17 00:00:00 2001 From: SmileTheory Date: Thu, 16 Oct 2014 00:32:20 -0700 Subject: OpenGL2: Bit of multidraw optimization. --- src/renderergl2/tr_shade.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/renderergl2/tr_shade.c') 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); } -- cgit