From 24532721b8ddf749c486e3aa2831040a24f228f4 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Wed, 2 Mar 2005 12:55:50 +0000 Subject: [PATCH] Win32: Fix Pbuffer creation --- src/native/win32/org_lwjgl_opengl_Pbuffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/native/win32/org_lwjgl_opengl_Pbuffer.c b/src/native/win32/org_lwjgl_opengl_Pbuffer.c index a8eef264..c897cc52 100644 --- a/src/native/win32/org_lwjgl_opengl_Pbuffer.c +++ b/src/native/win32/org_lwjgl_opengl_Pbuffer.c @@ -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);