diff options
author | David Thompson <dthompson@member.fsf.org> | 2013-07-06 16:41:07 -0400 |
---|---|---|
committer | David Thompson <dthompson@member.fsf.org> | 2013-07-06 16:41:07 -0400 |
commit | 29adec1693fd4dd8135e2b0ae9733eeb822978b0 (patch) | |
tree | fdc185b4e55714741c364418e626fd98b73dc5e2 /2d | |
parent | f5175c83cc994ae18667245c0374d50ef7fdbb77 (diff) |
Fix sprite batch not rendering the correct number of vertices.
Diffstat (limited to '2d')
-rw-r--r-- | 2d/sprite.scm | 2 |
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)) |