From 9bc2203adf1d6c24d342f4e002ee5b6a322313d4 Mon Sep 17 00:00:00 2001 From: vlj Date: Wed, 25 Jun 2014 01:43:51 +0200 Subject: [PATCH] Remove break at wrong position --- src/graphics/stkmesh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics/stkmesh.cpp b/src/graphics/stkmesh.cpp index c3bff6c10..ec44f1a9e 100644 --- a/src/graphics/stkmesh.cpp +++ b/src/graphics/stkmesh.cpp @@ -90,7 +90,6 @@ GLuint createVAO(GLuint vbo, GLuint idx, video::E_VERTEX_TYPE type) glVertexAttribPointer(3, 2, GL_FLOAT, GL_FALSE, getVertexPitchFromType(type), (GLvoid*)28); break; case video::EVT_2TCOORDS: - break; // Position glEnableVertexAttribArray(0); glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, getVertexPitchFromType(type), 0); @@ -151,6 +150,7 @@ GLMesh allocateMeshBuffer(scene::IMeshBuffer* mb) result.Stride = getVertexPitchFromType(vType); const c8* vbuf = static_cast(vertices); glBufferData(GL_ARRAY_BUFFER, vertexCount * result.Stride, vbuf, GL_STATIC_DRAW); + assert(vertexCount); glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, result.index_buffer); const void* indices = mb->getIndices();