Permalink
Browse files

Fix

  • Loading branch information...
Dgame committed Apr 30, 2015
1 parent bf4be22 commit bf2e924b516b197b95cc2ba18965ea48a7c187ad
Showing with 2 additions and 1 deletion.
  1. +2 −1 source/Dgame/Window/Window.d
@@ -705,7 +705,8 @@ package(Dgame):
if (texture)
glTexCoordPointer(2, GL_FLOAT, Vertex.sizeof, &vertices[0].texCoord.x);
glDrawArrays(geo, 0, vertices.length);
// prevent 64 bit bug, because *.length is size_t and therefore on 64 bit platforms ulong
glDrawArrays(geo, 0, cast(uint) vertices.length);
if (texture)
texture.unbind();

0 comments on commit bf2e924

Please sign in to comment.