From 0f8b8d6c0fe0b03e444a4aea38407b18d0ce71ee Mon Sep 17 00:00:00 2001 From: LaurentGom Date: Wed, 4 Nov 2009 08:04:43 +0000 Subject: [PATCH] Forgot to remove temporary code in ContextGLX.cpp :) git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1262 4e206d99-4929-0410-ac5d-dfc041789085 --- src/SFML/Window/Linux/ContextGLX.cpp | 23 ----------------------- 1 file changed, 23 deletions(-) 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) {