diff options
-rw-r--r-- | chickadee/graphics/buffer.scm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chickadee/graphics/buffer.scm b/chickadee/graphics/buffer.scm index be78fc2..b4a1d10 100644 --- a/chickadee/graphics/buffer.scm +++ b/chickadee/graphics/buffer.scm @@ -622,7 +622,7 @@ argument may be overridden. The following values are supported: (define* (render-vertices/instanced array instances #:key count (offset 0)) (set-gpu-vertex-array! (current-gpu) array) (let ((indices (vertex-array-indices array))) - (when indices + (if indices (begin (apply-buffer-view indices) (gl-draw-elements-instanced (vertex-array-mode-gl array) |