diff options
author | David Thompson <dthompson2@worcester.edu> | 2020-10-11 23:16:19 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2020-10-12 08:39:37 -0400 |
commit | f7f60d94cba951d9731b288d75ca7c54c2ee53eb (patch) | |
tree | 4c436fc2fa6c0c0f67c7996d9a0ce1ad5ff48bd6 /chickadee.scm | |
parent | de4d9ac89f8811448035c5a77f5694dacafbe131 (diff) |
graphics: Add multisampling support.
Diffstat (limited to 'chickadee.scm')
-rw-r--r-- | chickadee.scm | 4 |
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")) |