From f790af1d57c84c61b29f72b8f4ca6c7b886ccc50 Mon Sep 17 00:00:00 2001 From: kervala Date: Fri, 26 Jan 2018 12:29:13 +0100 Subject: [PATCH] Fixed: Wrong size for 32 bits indices array --HG-- branch : develop --- code/nel/src/3d/driver/opengl/driver_opengl_vertex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/nel/src/3d/driver/opengl/driver_opengl_vertex.cpp b/code/nel/src/3d/driver/opengl/driver_opengl_vertex.cpp index ecadaaac2..b3a3e5194 100644 --- a/code/nel/src/3d/driver/opengl/driver_opengl_vertex.cpp +++ b/code/nel/src/3d/driver/opengl/driver_opengl_vertex.cpp @@ -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"); #else // indices fits on 32 bits - GLint indices[QUAD_BATCH_SIZE]; + GLint indices[QUAD_BATCH_SIZE * 6]; GLint *curr = indices; GLint *end = indices + 6 * numQuadsToDraw; uint32 vertexIndex = currIndex;