diff options
author | David Thompson <dthompson2@worcester.edu> | 2020-11-18 17:22:36 -0500 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2020-11-18 17:22:36 -0500 |
commit | dafddcdb4c867f40b625c149345e4d3c3841f645 (patch) | |
tree | 463d59eecb3cd0210c670334cfc902cb807c240f | |
parent | 8b24b2ffbd413811026a91ed7b23ffb9de7e45da (diff) |
graphics: buffer: Fix silly error in render-vertices/instanced.
Used 'when' when I meant to use 'if' and therefore both branches of
what should have been a conditional were executed. :(
-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) |