Skip to content

Commit

Permalink
Fix the buffer number (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gleefre authored Nov 5, 2023
1 parent c3d89d6 commit 83f56d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drawing.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
,@body))

(defun start-draw ()
(%gl:bind-buffer :array-buffer 1)
(%gl:bind-buffer :array-buffer (aref (slot-value (env-vao *env*) 'kit.gl.vao::vbos) 0))
(%gl:buffer-data :array-buffer *buffer-size* (cffi:null-pointer) :stream-draw)
(setf (env-buffer-position *env*) 0)
(kit.gl.vao:vao-bind (env-vao *env*)))
Expand Down

0 comments on commit 83f56d6

Please sign in to comment.