From d4ee9b7184ae900252d8bb41990f195dede4885e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 6 Oct 2015 20:06:50 +0200 Subject: [PATCH] Revert "Platform: really properly fix context creation in Sdl2Application." Apparently, on NVidia, this forces the driver to version 3.1. AARGH. This reverts commit a7661d70767bc6ba1651f307ee429d10ee6a56cd. --- src/Magnum/Platform/Sdl2Application.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Magnum/Platform/Sdl2Application.cpp b/src/Magnum/Platform/Sdl2Application.cpp index 500e39730..9217dd5d0 100644 --- a/src/Magnum/Platform/Sdl2Application.cpp +++ b/src/Magnum/Platform/Sdl2Application.cpp @@ -135,13 +135,13 @@ bool Sdl2Application::tryCreateContext(const Configuration& configuration) { /* First try to create core context. This is needed mainly on OS X and Mesa, as support for recent OpenGL versions isn't implemented in compatibility contexts (which are the default). At least GL 3.2 is - needed on OSX, at least GL 3.1 is needed on Mesa. Bite the bullet - and try 3.1 also elsewhere. */ + needed on OSX, at least GL 3.0 is needed on Mesa. Bite the bullet + and try 3.0 also elsewhere. */ SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3); #ifdef CORRADE_TARGET_APPLE SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 2); #else - SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 1); + SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0); #endif SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE);