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
This commit is contained in:
LaurentGom 2009-11-18 21:33:23 +00:00
parent 45458cb82d
commit 3fb9888b49

View File

@ -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;
}