From d8538d3a2ffebb3f573d6e90e1bbcc75638b2f8a Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Mon, 11 May 2020 19:12:33 +0100 Subject: [PATCH] gui: Require OpenGL version 3.3 --- src/xrt/targets/gui/gui_sdl2.c | 2 +- src/xrt/targets/openxr/oxr_sdl2_hack.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xrt/targets/gui/gui_sdl2.c b/src/xrt/targets/gui/gui_sdl2.c index e6325a9e5..13b031178 100644 --- a/src/xrt/targets/gui/gui_sdl2.c +++ b/src/xrt/targets/gui/gui_sdl2.c @@ -72,7 +72,7 @@ gui_sdl2_init(struct sdl2_program *p) SDL_GL_SetAttribute(SDL_GL_CONTEXT_FLAGS, SDL_GL_CONTEXT_FORWARD_COMPATIBLE_FLAG); SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3); - SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 2); + SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 3); SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24); SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8); diff --git a/src/xrt/targets/openxr/oxr_sdl2_hack.c b/src/xrt/targets/openxr/oxr_sdl2_hack.c index f5371965d..54ea7cc5b 100644 --- a/src/xrt/targets/openxr/oxr_sdl2_hack.c +++ b/src/xrt/targets/openxr/oxr_sdl2_hack.c @@ -78,7 +78,7 @@ sdl2_window_init(struct sdl2_program *p) SDL_GL_SetAttribute(SDL_GL_CONTEXT_FLAGS, 0); SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3); - SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 2); + SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 3); SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24); SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8);