From 3fb9888b49d8f89eb691e72f865112796173e8a3 Mon Sep 17 00:00:00 2001 From: LaurentGom Date: Wed, 18 Nov 2009 21:33:23 +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/trunk@1277 4e206d99-4929-0410-ac5d-dfc041789085 --- src/SFML/Window/Win32/WindowImplWin32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SFML/Window/Win32/WindowImplWin32.cpp b/src/SFML/Window/Win32/WindowImplWin32.cpp index c670a764..d613e556 100644 --- a/src/SFML/Window/Win32/WindowImplWin32.cpp +++ b/src/SFML/Window/Win32/WindowImplWin32.cpp @@ -538,7 +538,7 @@ void WindowImplWin32::CreateContext(const VideoMode& Mode, WindowSettings& Param std::cerr << "Failed to find a pixel format supporting " << Params.AntialiasingLevel << " antialiasing levels ; trying with 2 levels" << std::endl; - Params.AntialiasingLevel = IntAttributes[1] = 2; + Params.AntialiasingLevel = IntAttributes[11] = 2; IsValid = wglChoosePixelFormatARB(myDeviceContext, IntAttributes, FloatAttributes, sizeof(Formats) / sizeof(*Formats), Formats, &NbFormats) != 0; }