From 1967f72de20cc0c176375b4a1b704b322ef7dcd1 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sun, 12 Jul 2020 08:19:45 -0400 Subject: render: gpu: Query GL context for GL and GLSL versions. --- chickadee.scm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'chickadee.scm') 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) -- cgit v1.2.3