diff --git a/src/SFML/Window/Linux/ContextGLX.cpp b/src/SFML/Window/Linux/ContextGLX.cpp index b72660d5..0a003d34 100644 --- a/src/SFML/Window/Linux/ContextGLX.cpp +++ b/src/SFML/Window/Linux/ContextGLX.cpp @@ -246,29 +246,6 @@ void ContextGLX::CreateContext(ContextGLX* shared, unsigned int bitsPerPixel, co // Get the context to share display lists with GLXContext toShare = shared ? shared->myContext : NULL; - // Create the OpenGL context -- first try an OpenGL 3.0 context if it is requested - if (settings.MajorVersion >= 3) - { - PFNWGLCREATECONTEXTATTRIBSARBPROC wglCreateContextAttribsARB = reinterpret_cast(wglGetProcAddress("wglCreateContextAttribsARB")); - if (wglCreateContextAttribsARB) - { - int attributes[] = - { - WGL_CONTEXT_MAJOR_VERSION_ARB, settings.MajorVersion, - WGL_CONTEXT_MINOR_VERSION_ARB, settings.MinorVersion, - 0, 0 - }; - myContext = wglCreateContextAttribsARB(myDeviceContext, sharedContext, attributes); - } - - // If we couldn't create an OpenGL 3 context, adjust the settings - if (!myContext) - { - mySettings.MajorVersion = 2; - mySettings.MinorVersion = 0; - } - } - // Create the OpenGL context -- first try an OpenGL 3.0 context if it is requested if (settings.MajorVersion >= 3) {