summaryrefslogtreecommitdiff
path: root/chickadee.scm
diff options
context:
space:
mode:
Diffstat (limited to 'chickadee.scm')
-rw-r--r--chickadee.scm4
1 files changed, 1 insertions, 3 deletions
diff --git a/chickadee.scm b/chickadee.scm
index 4edeb03..e7fb443 100644
--- a/chickadee.scm
+++ b/chickadee.scm
@@ -321,10 +321,8 @@ border is disabled, otherwise it is enabled.")
;; Free any GPU resources that have been GC'd.
(gpu-reap!))
(define (render-sdl-opengl alpha)
- ;; Switch to the default viewport so we can clear the whole screen.
- (set-gpu-viewport! gpu default-viewport)
- (gl-clear clear-mask)
(with-viewport default-viewport
+ (clear-screen)
(with-projection default-projection
(draw alpha)))
(sdl2:swap-gl-window window))