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
This commit is contained in:
parent
a5b117eea7
commit
548991d665
@ -181,7 +181,7 @@ void ContextWGL::CreateContext(ContextWGL* shared, unsigned int bitsPerPixel, co
|
|||||||
std::cerr << "Failed to find a pixel format supporting "
|
std::cerr << "Failed to find a pixel format supporting "
|
||||||
<< mySettings.AntialiasingLevel << " antialiasing levels ; trying with 2 levels" << std::endl;
|
<< 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;
|
isValid = wglChoosePixelFormatARB(myDeviceContext, intAttributes, floatAttributes, sizeof(formats) / sizeof(*formats), formats, &nbFormats) != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user