diff options
-rw-r--r-- | chickadee/graphics/framebuffer.scm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chickadee/graphics/framebuffer.scm b/chickadee/graphics/framebuffer.scm index b0cb9fc..9c4b99b 100644 --- a/chickadee/graphics/framebuffer.scm +++ b/chickadee/graphics/framebuffer.scm @@ -153,7 +153,8 @@ dimensions WIDTH x HEIGHT." ;; as well so that the user doesn't have to explicitly make a ;; viewport and/or projection matrix unless they actually want to do ;; fancy viewport manipulations. - (with-graphics-state ((g:framebuffer framebuffer) - (g:viewport (framebuffer-viewport framebuffer))) + (with-graphics-state! ((g:framebuffer framebuffer) + (g:viewport (framebuffer-viewport framebuffer))) + (clear-viewport) (with-projection (framebuffer-projection framebuffer) body ...))) |