summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--2d/sprite.scm4
1 files changed, 1 insertions, 3 deletions
diff --git a/2d/sprite.scm b/2d/sprite.scm
index ac57adb..7c036f3 100644
--- a/2d/sprite.scm
+++ b/2d/sprite.scm
@@ -129,9 +129,7 @@
vertices
#:stride sprite-vertex-size
#:offset s-offset)
- (gl-draw-arrays (begin-mode quads)
- 0
- (packed-array-length vertices sprite-vertex)))
+ (gl-draw-arrays (begin-mode quads) 0 (* size 4)))
(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))))