diff --git a/src/Platform/Sdl2Application.cpp b/src/Platform/Sdl2Application.cpp index 6e81c4ab1..165cbcfe8 100644 --- a/src/Platform/Sdl2Application.cpp +++ b/src/Platform/Sdl2Application.cpp @@ -44,10 +44,6 @@ Sdl2Application::Sdl2Application(int, char**, const std::string& name, const Mat exit(1); } - /* Request OpenGL 3.2 */ - SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3); - SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 2); - /* Enable double buffering and 24bt depth buffer */ SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24); diff --git a/src/Platform/Sdl2Application.h b/src/Platform/Sdl2Application.h index 6118890b9..ab3eb217d 100644 --- a/src/Platform/Sdl2Application.h +++ b/src/Platform/Sdl2Application.h @@ -37,8 +37,9 @@ namespace Platform { /** @nosubgrouping @brief SDL2 application -Application using [Simple DirectMedia Layer](www.libsdl.org/). Supports -keyboard and mouse handling. +Application using [Simple DirectMedia Layer](www.libsdl.org/). Centered +non-resizable window with double-buffered OpenGL context and 24bit depth +buffer. Supports keyboard and mouse handling. @section Sdl2Application-usage Usage @@ -65,9 +66,6 @@ class Sdl2Application { * @param argv Arguments of `main()` function * @param title Window title * @param size Window size - * - * Creates centered non-resizable window with double-buffered - * OpenGL 3.2 context with 24bit depth buffer. */ Sdl2Application(int argc, char** argv, const std::string& title = "Magnum SDL2 application", const Math::Vector2& size = Math::Vector2(800, 600));