org.lwjgl.opengl.Window.allowSoftwareOpenGL flag support for linux

This commit is contained in:
Elias Naur 2004-03-12 07:12:34 +00:00
parent 3b875b1781
commit 536bab5a52
1 changed files with 2 additions and 1 deletions

View File

@ -403,7 +403,8 @@ static bool initWindowGLX13(JNIEnv *env, Display *disp, int screen, jstring titl
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");