From f290b6418d2fdd8790ead38e420ca6d05f7ae09c Mon Sep 17 00:00:00 2001 From: sdegrande Date: Thu, 31 Aug 2023 16:36:13 +0200 Subject: [PATCH] t/sdl_test: sdl-test needs OpenGL4.5 sdl-test uses some OpenGL4.5 features, such as Texture Objects. Currently, sdl-test is initialized with an OpenGL3.3 context, and with a NVidia driver (version 535.98, on Linux), the call to those features (glCreateTextures() being the first of them) segfaults. --- src/xrt/targets/sdl_test/sdl_program.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xrt/targets/sdl_test/sdl_program.cpp b/src/xrt/targets/sdl_test/sdl_program.cpp index 34db2a2ab..2ff455e1c 100644 --- a/src/xrt/targets/sdl_test/sdl_program.cpp +++ b/src/xrt/targets/sdl_test/sdl_program.cpp @@ -32,8 +32,8 @@ sdl_create_window(struct sdl_program *sp) SDL_GL_SetAttribute(SDL_GL_CONTEXT_FLAGS, 0); SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE); 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, 3); + SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 4); + SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 5); SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24); SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8);