summaryrefslogtreecommitdiff
path: root/chickadee.scm
diff options
context:
space:
mode:
Diffstat (limited to 'chickadee.scm')
-rw-r--r--chickadee.scm4
1 files changed, 4 insertions, 0 deletions
diff --git a/chickadee.scm b/chickadee.scm
index e974b9f..ad018be 100644
--- a/chickadee.scm
+++ b/chickadee.scm
@@ -241,6 +241,8 @@ border is disabled, otherwise it is enabled.")
(sdl2:set-gl-attribute! 'context-major-version 2)
(sdl2:set-gl-attribute! 'context-profile-mask 1) ; core profile
(sdl2:set-gl-attribute! 'stencil-size 8) ; 8-bit stencil buffer
+ (sdl2:set-gl-attribute! 'multisample-buffers 1)
+ (sdl2:set-gl-attribute! 'multisample-samples 4)
(let* ((window (sdl2:make-window #:opengl? #t
#:title window-title
#:size (list window-width window-height)
@@ -350,6 +352,8 @@ border is disabled, otherwise it is enabled.")
(lambda args
(display "warning: could not enable vsync\n"
(current-error-port))))
+ ;; Turn off multisampling by default.
+ (gl-disable (version-1-3 multisample))
(load)
(sdl2:load-game-controller-mappings!
(scope-datadir "gamecontrollerdb.txt"))