mirror of
https://github.com/SFML/SFML.git
synced 2024-11-29 06:41:05 +08:00
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:
parent
a8a3b423bf
commit
4051c1d99d
@ -118,7 +118,7 @@ void GeometryRendererVBO::End()
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
void GeometryRendererVBO::RenderTriangles(Uint32 start, Uint32 count)
|
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));
|
GLCheck(glDrawElements(GL_TRIANGLES, static_cast<GLsizei>(count), GL_UNSIGNED_INT, pointer + start));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user