mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
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:
parent
45458cb82d
commit
3fb9888b49
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user