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();