From 83f56d6195009330ac667e8212e068b43f0d8ea6 Mon Sep 17 00:00:00 2001 From: Gleefre Date: Sun, 5 Nov 2023 14:31:36 +0100 Subject: [PATCH] Fix the buffer number (#101) --- src/drawing.lisp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drawing.lisp b/src/drawing.lisp index e317667..14eafa7 100644 --- a/src/drawing.lisp +++ b/src/drawing.lisp @@ -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*)))