Windows: Don't exclude PFD_GENERIC_ACCELERATED formats when selecting pixel formats. Hopefully this will enable LWJGL to use the directx emulated opengl implementation on vista

This commit is contained in:
Elias Naur 2007-02-17 09:49:44 +00:00
parent 56178d97fd
commit dd41c22da7

View file

@ -339,7 +339,7 @@ static int findPixelFormatFromBPP(JNIEnv *env, HDC hdc, jobject pixel_format, in
return -1;
}
if ((desc.dwFlags & PFD_GENERIC_FORMAT) != 0 || (desc.dwFlags & PFD_GENERIC_ACCELERATED) != 0) {
if ((desc.dwFlags & PFD_GENERIC_FORMAT) != 0) {
jboolean allowSoftwareOpenGL = getBooleanProperty(env, "org.lwjgl.opengl.Display.allowSoftwareOpenGL");
// secondary check for software override
if(!allowSoftwareOpenGL) {