From e0bb89d1d665bf0841df914dcd5be6f409d9ddd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Sun, 12 Jun 2016 19:12:54 +0200 Subject: [PATCH] Explicitly request OpenGL 3.3 context --- src/drawing/engines/opengl/OpenGLDrawingEngine.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/drawing/engines/opengl/OpenGLDrawingEngine.cpp b/src/drawing/engines/opengl/OpenGLDrawingEngine.cpp index cb1c75391b..418b7a1b8c 100644 --- a/src/drawing/engines/opengl/OpenGLDrawingEngine.cpp +++ b/src/drawing/engines/opengl/OpenGLDrawingEngine.cpp @@ -247,6 +247,10 @@ public: { _window = window; + + SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE); + SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3); + SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 3); _context = SDL_GL_CreateContext(_window); SDL_GL_MakeCurrent(_window, _context);