diff options
-rw-r--r-- | chickadee.scm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chickadee.scm b/chickadee.scm index 17cf33d..10136d9 100644 --- a/chickadee.scm +++ b/chickadee.scm @@ -179,6 +179,10 @@ (begin ;; Render a frame. (run-hook before-draw-hook) + ;; Switch to the null viewport to ensure that + ;; the default viewport will be re-applied and + ;; clear the screen. + (gpu-state-set! *viewport-state* null-viewport) (with-viewport default-viewport (with-projection default-projection (run-hook draw-hook (/ lag update-interval)))) |