Fixed a bug in GeometryRendererVBO which caused some quads to be ignored

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1303 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
LaurentGom 2009-12-03 19:36:49 +00:00
parent a8a3b423bf
commit 4051c1d99d

View File

@ -118,7 +118,7 @@ void GeometryRendererVBO::End()
////////////////////////////////////////////////////////////
void GeometryRendererVBO::RenderTriangles(Uint32 start, Uint32 count)
{
static const std::size_t* pointer = NULL;
static const UInt32* pointer = NULL;
GLCheck(glDrawElements(GL_TRIANGLES, static_cast<GLsizei>(count), GL_UNSIGNED_INT, pointer + start));
}