mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-07 23:44:06 +00:00
added missing software flag checks in linux
This commit is contained in:
parent
27633adfcb
commit
e5e492a285
2 changed files with 4 additions and 2 deletions
|
|
@ -131,7 +131,8 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_Pbuffer_nCreate
|
|||
throwException(env, "Could not create a GLX context");
|
||||
return false;
|
||||
}
|
||||
if (glXIsDirect(getCurrentDisplay(), context) == False) {
|
||||
jboolean allow_software_acceleration = getBooleanProperty(env, "org.lwjgl.opengl.Window.allowSoftwareOpenGL");
|
||||
if (!allow_software_acceleration && glXIsDirect(getCurrentDisplay(), context) == False) {
|
||||
glXDestroyContext(getCurrentDisplay(), context);
|
||||
XFree(configs);
|
||||
throwException(env, "Could not create a direct GLX context");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue