summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2020-11-18 17:22:36 -0500
committerDavid Thompson <dthompson2@worcester.edu>2020-11-18 17:22:36 -0500
commitdafddcdb4c867f40b625c149345e4d3c3841f645 (patch)
tree463d59eecb3cd0210c670334cfc902cb807c240f
parent8b24b2ffbd413811026a91ed7b23ffb9de7e45da (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.scm2
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)