]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_sdl.c
Use GL3.2 Core Profile context.
[xonotic/darkplaces.git] / vid_sdl.c
index 2c1b204487c8bd55aea00151ac8f3391f73a1cce..248baac760cecccfade6af4180ae8ff37fb0de3a 100644 (file)
--- a/vid_sdl.c
+++ b/vid_sdl.c
@@ -1512,6 +1512,8 @@ static qboolean VID_InitModeGL(viddef_mode_t *mode)
        SDL_GL_SetAttribute (SDL_GL_CONTEXT_MINOR_VERSION, 0);
        SDL_GL_SetAttribute (SDL_GL_RETAINED_BACKING, 1);
 #else
+       SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
+       SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 2);
        SDL_GL_SetAttribute(SDL_GL_CONTEXT_FLAGS, (gl_debug.integer > 0 ? SDL_GL_CONTEXT_DEBUG_FLAG : 0));
 #endif