No longer uses ARB pixel formats when samples == 0
This commit is contained in:
parent
d137610528
commit
7593877a42
|
@ -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
|
// 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.
|
// rendering context and start over, using the ARB extension instead to pick the context.
|
||||||
extgl_InitWGL(env);
|
extgl_InitWGL(env);
|
||||||
if (extgl_Extensions.WGL_ARB_pixel_format) {
|
if (extgl_Extensions.WGL_ARB_pixel_format && samples > 0) {
|
||||||
wglMakeCurrent(NULL, NULL);
|
wglMakeCurrent(NULL, NULL);
|
||||||
wglDeleteContext(hglrc);
|
wglDeleteContext(hglrc);
|
||||||
closeWindow();
|
closeWindow();
|
||||||
|
|
Loading…
Reference in New Issue