summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2020-04-11 23:10:50 -0400
committerDavid Thompson <dthompson2@worcester.edu>2020-04-11 23:10:50 -0400
commitf2721b20704a0e5a4960d490d0ba465feccdf192 (patch)
treed13c33e23141cee30a2d4fc57c649f8f17cc675a
parentd150acec04ddff321caae0cff88f6cc26161417c (diff)
render: Apply framebuffer before clearing screen.
-rw-r--r--chickadee/render.scm1
1 files changed, 1 insertions, 0 deletions
diff --git a/chickadee/render.scm b/chickadee/render.scm
index 04295e6..00e484c 100644
--- a/chickadee/render.scm
+++ b/chickadee/render.scm
@@ -98,6 +98,7 @@
(define (clear-screen)
(let ((viewport (current-viewport)))
+ (set-gpu-framebuffer! (current-gpu) (current-framebuffer))
(set-gpu-viewport! (current-gpu) viewport)
(clear-viewport viewport)))