org.lwjgl.opengl.Window.allowSoftwareOpenGL flag support for linux
This commit is contained in:
parent
3b875b1781
commit
536bab5a52
|
@ -403,7 +403,8 @@ static bool initWindowGLX13(JNIEnv *env, Display *disp, int screen, jstring titl
|
||||||
throwException(env, "Could not create a GLX context");
|
throwException(env, "Could not create a GLX context");
|
||||||
return false;
|
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);
|
glXDestroyContext(disp, context);
|
||||||
XFree(configs);
|
XFree(configs);
|
||||||
throwException(env, "Could not create a direct GLX context");
|
throwException(env, "Could not create a direct GLX context");
|
||||||
|
|
Loading…
Reference in New Issue