Permalink
Browse files

Fix vertex array size calculation

  • Loading branch information...
Shinmera committed Nov 12, 2018
1 parent a4501ee commit d239a70920af2bfabaf4a9d3d9c75e054f1e257f
Showing with 2 additions and 1 deletion.
  1. +2 −1 resources/vertex-array.lisp
@@ -42,7 +42,8 @@
(ecase (buffer-type buffer)
(:element-array-buffer
(unless (size array)
(setf (size array) (size buffer)))
(setf (size array) (/ (size buffer)
(gl-type-size (element-type buffer)))))
(decf i))
(:array-buffer
(if (or normalize (find (element-type buffer) '(:half-float :float :double)))

0 comments on commit d239a70

Please sign in to comment.