summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson@member.fsf.org>2013-07-06 16:41:07 -0400
committerDavid Thompson <dthompson@member.fsf.org>2013-07-06 16:41:07 -0400
commit29adec1693fd4dd8135e2b0ae9733eeb822978b0 (patch)
treefdc185b4e55714741c364418e626fd98b73dc5e2
parentf5175c83cc994ae18667245c0374d50ef7fdbb77 (diff)
Fix sprite batch not rendering the correct number of vertices.
-rw-r--r--2d/sprite.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/2d/sprite.scm b/2d/sprite.scm
index c55e1d0..bcf09b6 100644
--- a/2d/sprite.scm
+++ b/2d/sprite.scm
@@ -253,7 +253,7 @@ batched texture vertices first."
vertices
#:stride struct-size
#:offset (packed-struct-offset sprite-vertex s))
- (gl-draw-arrays (begin-mode quads) 0 size)))
+ (gl-draw-arrays (begin-mode quads) 0 vertex-count)))
(gl-disable-client-state (enable-cap texture-coord-array))
(gl-disable-client-state (enable-cap color-array))
(gl-disable-client-state (enable-cap vertex-array))