From 7593877a425927085667001e828d468d9ffc3572 Mon Sep 17 00:00:00 2001 From: Caspian Rychlik-Prince Date: Wed, 26 May 2004 14:41:12 +0000 Subject: [PATCH] No longer uses ARB pixel formats when samples == 0 --- src/native/win32/org_lwjgl_opengl_Window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/native/win32/org_lwjgl_opengl_Window.cpp b/src/native/win32/org_lwjgl_opengl_Window.cpp index fd17ed7f..b0e91c7d 100755 --- a/src/native/win32/org_lwjgl_opengl_Window.cpp +++ b/src/native/win32/org_lwjgl_opengl_Window.cpp @@ -499,7 +499,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_nCreate // of multisamples we want. If the extension is present we'll delete the existing // rendering context and start over, using the ARB extension instead to pick the context. extgl_InitWGL(env); - if (extgl_Extensions.WGL_ARB_pixel_format) { + if (extgl_Extensions.WGL_ARB_pixel_format && samples > 0) { wglMakeCurrent(NULL, NULL); wglDeleteContext(hglrc); closeWindow();