|
From: <eli...@us...> - 2004-03-12 07:39:50
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/linux In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9860/linux Modified Files: org_lwjgl_opengl_Window.cpp Log Message: org.lwjgl.opengl.Window.allowSoftwareOpenGL flag support for linux Index: org_lwjgl_opengl_Window.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/linux/org_lwjgl_opengl_Window.cpp,v retrieving revision 1.21 retrieving revision 1.22 diff -u -d -r1.21 -r1.22 --- org_lwjgl_opengl_Window.cpp 11 Mar 2004 12:38:13 -0000 1.21 +++ org_lwjgl_opengl_Window.cpp 12 Mar 2004 07:12:34 -0000 1.22 @@ -403,7 +403,8 @@ throwException(env, "Could not create a GLX context"); return false; } - if (glXIsDirect(disp, context) == False) { + jboolean allow_software_acceleration = getBooleanProperty(env, "org.lwjgl.opengl.Window.allowSoftwareOpenGL"); + if (!allow_software_acceleration && (glXIsDirect(disp, context) == False)) { glXDestroyContext(disp, context); XFree(configs); throwException(env, "Could not create a direct GLX context"); |