From d1920623156a2c35a2801be86398bae5674c64b7 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sun, 11 Oct 2020 22:49:16 -0400 Subject: graphics: Fix argument order in gpu-apply and gpu-apply/instanced. --- chickadee/graphics.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chickadee/graphics.scm b/chickadee/graphics.scm index 1a2917f..4cc21a4 100644 --- a/chickadee/graphics.scm +++ b/chickadee/graphics.scm @@ -188,7 +188,7 @@ (render-vertices vertex-array #:count count #:offset offset))) (define-syntax-rule (gpu-apply shader vertex-array uniforms ...) - (gpu-apply* shader vertex-array #f 0 uniforms ...)) + (gpu-apply* shader vertex-array 0 #f uniforms ...)) (define-syntax-rule (gpu-apply/instanced* shader vertex-array offset count instances . uniforms) @@ -198,4 +198,4 @@ (define-syntax-rule (gpu-apply/instanced shader vertex-array instances uniforms ...) - (gpu-apply/instanced* shader vertex-array #f 0 instances uniforms ...)) + (gpu-apply/instanced* shader vertex-array 0 #f instances uniforms ...)) -- cgit v1.2.3