render: Apply framebuffer before clearing screen.
authorDavid Thompson <dthompson2@worcester.edu>
Sun, 12 Apr 2020 03:10:50 +0000 (23:10 -0400)
committerDavid Thompson <dthompson2@worcester.edu>
Sun, 12 Apr 2020 03:10:50 +0000 (23:10 -0400)
chickadee/render.scm

index 04295e6..00e484c 100644 (file)
@@ -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)))