From 4051c1d99d359f9d28d25c59ace64dc2145300af Mon Sep 17 00:00:00 2001 From: LaurentGom Date: Thu, 3 Dec 2009 19:36:49 +0000 Subject: [PATCH] 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 --- src/SFML/Graphics/GeometryRendererVBO.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SFML/Graphics/GeometryRendererVBO.cpp b/src/SFML/Graphics/GeometryRendererVBO.cpp index e753570b..66958504 100644 --- a/src/SFML/Graphics/GeometryRendererVBO.cpp +++ b/src/SFML/Graphics/GeometryRendererVBO.cpp @@ -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(count), GL_UNSIGNED_INT, pointer + start)); }