Win32: Fix Pbuffer creation

This commit is contained in:
Elias Naur 2005-03-02 12:55:50 +00:00
parent bc68be431e
commit 24532721b8
1 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_Win32Display_nGetPbufferCapabilitie
int pixel_format_id;
WGLExtensions extensions;
pixel_format_id = findPixelFormat(env, origin_x, origin_y, pixel_format, NULL, false, false, true, false);
pixel_format_id = findPixelFormat(env, origin_x, origin_y, pixel_format, NULL, false, true, true, false);
if (pixel_format_id == -1)
return 0;
dummy_hwnd = createDummyWindow(origin_x, origin_y);
@ -138,7 +138,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Win32PbufferPeerInfo_nCreate
} else {
pBufferAttribs_ptr = NULL;
}
pixel_format_id = findPixelFormat(env, origin_x, origin_y, pixel_format, pixelFormatCaps, false, false, true, false);
pixel_format_id = findPixelFormat(env, origin_x, origin_y, pixel_format, pixelFormatCaps, false, true, true, false);
if (pixel_format_id == -1)
return;
dummy_hwnd = createDummyWindow(origin_x, origin_y);