Fixed: Wrong size for 32 bits indices array

--HG--
branch : develop
This commit is contained in:
kervala 2018-01-26 12:29:13 +01:00
parent 56d17e2729
commit f790af1d57

View file

@ -635,7 +635,7 @@ bool CDriverGL::renderRawQuads(CMaterial& mat, uint32 startIndex, uint32 numQuad
nlerror("not available in OpenGL ES 1.0, only use 16 bits indices"); nlerror("not available in OpenGL ES 1.0, only use 16 bits indices");
#else #else
// indices fits on 32 bits // indices fits on 32 bits
GLint indices[QUAD_BATCH_SIZE]; GLint indices[QUAD_BATCH_SIZE * 6];
GLint *curr = indices; GLint *curr = indices;
GLint *end = indices + 6 * numQuadsToDraw; GLint *end = indices + 6 * numQuadsToDraw;
uint32 vertexIndex = currIndex; uint32 vertexIndex = currIndex;