From f7f60d94cba951d9731b288d75ca7c54c2ee53eb Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sun, 11 Oct 2020 23:16:19 -0400 Subject: graphics: Add multisampling support. --- chickadee.scm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'chickadee.scm') 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")) -- cgit v1.2.3