From 548991d66518ec879c4952f9b384ac5d4339f9d1 Mon Sep 17 00:00:00 2001 From: LaurentGom Date: Wed, 18 Nov 2009 21:36:09 +0000 Subject: [PATCH] Fixed error in WGL context creation with anti-aliasing level too high git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1278 4e206d99-4929-0410-ac5d-dfc041789085 --- src/SFML/Window/Win32/ContextWGL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SFML/Window/Win32/ContextWGL.cpp b/src/SFML/Window/Win32/ContextWGL.cpp index ba328c23..8029626e 100644 --- a/src/SFML/Window/Win32/ContextWGL.cpp +++ b/src/SFML/Window/Win32/ContextWGL.cpp @@ -181,7 +181,7 @@ void ContextWGL::CreateContext(ContextWGL* shared, unsigned int bitsPerPixel, co std::cerr << "Failed to find a pixel format supporting " << mySettings.AntialiasingLevel << " antialiasing levels ; trying with 2 levels" << std::endl; - mySettings.AntialiasingLevel = intAttributes[1] = 2; + mySettings.AntialiasingLevel = intAttributes[11] = 2; isValid = wglChoosePixelFormatARB(myDeviceContext, intAttributes, floatAttributes, sizeof(formats) / sizeof(*formats), formats, &nbFormats) != 0; }