No longer uses ARB pixel formats when samples == 0

This commit is contained in:
Caspian Rychlik-Prince 2004-05-26 14:41:12 +00:00
parent d137610528
commit 7593877a42
1 changed files with 1 additions and 1 deletions

View File

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