From: Caspian Rychlik-P. <ci...@us...> - 2004-05-26 14:41:22
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/win32 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8823/src/native/win32 Modified Files: org_lwjgl_opengl_Window.cpp Log Message: No longer uses ARB pixel formats when samples == 0 Index: org_lwjgl_opengl_Window.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/win32/org_lwjgl_opengl_Window.cpp,v retrieving revision 1.32 retrieving revision 1.33 diff -u -d -r1.32 -r1.33 --- org_lwjgl_opengl_Window.cpp 14 May 2004 12:52:39 -0000 1.32 +++ org_lwjgl_opengl_Window.cpp 26 May 2004 14:41:12 -0000 1.33 @@ -499,7 +499,7 @@ // 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(); |