From 19436dbd7258d55484825ec9b06eaa4e9efaf36b Mon Sep 17 00:00:00 2001 From: David Thompson Date: Wed, 7 Apr 2021 17:06:36 -0400 Subject: math: rect: Fix make-null-rect so all values are 0 instead of garbage. --- chickadee/math/rect.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chickadee/math/rect.scm b/chickadee/math/rect.scm index 8c80a75..3ccaf97 100644 --- a/chickadee/math/rect.scm +++ b/chickadee/math/rect.scm @@ -82,7 +82,7 @@ (bv unwrap-rect)) (define (make-null-rect) - (wrap-rect (make-f32vector 4))) + (wrap-rect (make-f32vector 4 0.0))) (define-syntax-rule (with-new-rect name body ...) (let ((name (make-null-rect))) body ... name)) -- cgit v1.2.3