diff options
-rw-r--r-- | sly/render/mesh.scm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sly/render/mesh.scm b/sly/render/mesh.scm index f1d6e2c..7f38b29 100644 --- a/sly/render/mesh.scm +++ b/sly/render/mesh.scm @@ -182,7 +182,7 @@ (arb-vertex-buffer-object array-buffer-arb))) (define (vertex-buffer-element-length vbo) - (/ (bytevector-length (vertex-buffer-data vbo)) + (/ (vertex-buffer-length vbo) (* (vertex-buffer-attribute-size vbo) 4))) (define (vertex-buffer-usage-gl vbo) |