summaryrefslogtreecommitdiff
path: root/chickadee.scm
diff options
context:
space:
mode:
Diffstat (limited to 'chickadee.scm')
-rw-r--r--chickadee.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/chickadee.scm b/chickadee.scm
index defa0a0..7b43888 100644
--- a/chickadee.scm
+++ b/chickadee.scm
@@ -235,6 +235,12 @@ border is disabled, otherwise it is enabled.")
(sdl-init)
(start-text-input)
(init-audio)
+ ;; Hint that we want OpenGL 3.2 Core profile. Doesn't mean we'll
+ ;; get it, though!
+ (sdl2:set-gl-attribute! 'context-major-version 3)
+ (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
(let* ((window (sdl2:make-window #:opengl? #t
#:title window-title
#:size (list window-width window-height)