diff --git a/src/SFML/Window/Linux/GlxContext.cpp b/src/SFML/Window/Linux/GlxContext.cpp index 020f018f..52c9e0a4 100644 --- a/src/SFML/Window/Linux/GlxContext.cpp +++ b/src/SFML/Window/Linux/GlxContext.cpp @@ -270,6 +270,10 @@ void GlxContext::CreateContext(GlxContext* shared, unsigned int bitsPerPixel, co // If the OpenGL >= 3.0 context failed or if we don't want one, create a regular OpenGL 1.x/2.x context if (!myContext) { + // set the context version to 2.0 (arbitrary) + mySettings.MajorVersion = 2; + mySettings.MinorVersion = 0; + myContext = glXCreateContext(myDisplay, bestVisual, toShare, true); if (!myContext) { diff --git a/src/SFML/Window/Win32/WglContext.cpp b/src/SFML/Window/Win32/WglContext.cpp index 54f32e4a..da7a1dc6 100644 --- a/src/SFML/Window/Win32/WglContext.cpp +++ b/src/SFML/Window/Win32/WglContext.cpp @@ -290,6 +290,10 @@ void WglContext::CreateContext(WglContext* shared, unsigned int bitsPerPixel, co // If the OpenGL >= 3.0 context failed or if we don't want one, create a regular OpenGL 1.x/2.x context if (!myContext) { + // set the context version to 2.0 (arbitrary) + mySettings.MajorVersion = 2; + mySettings.MinorVersion = 0; + myContext = wglCreateContext(myDeviceContext); if (!myContext) {