Fix the last bug and finally support OpenBSD
This commit is contained in:
parent
76867b161f
commit
079a4b2e9c
|
@ -220,7 +220,11 @@ bool extgl_Open(JNIEnv *env) {
|
||||||
*
|
*
|
||||||
* DRI drivers need this flag to work properly
|
* DRI drivers need this flag to work properly
|
||||||
*/
|
*/
|
||||||
|
#ifdef __OpenBSD__
|
||||||
|
lib_gl_handle = dlopen("libGL.so", RTLD_LAZY | RTLD_GLOBAL);
|
||||||
|
#else
|
||||||
lib_gl_handle = dlopen("libGL.so.1", RTLD_LAZY | RTLD_GLOBAL);
|
lib_gl_handle = dlopen("libGL.so.1", RTLD_LAZY | RTLD_GLOBAL);
|
||||||
|
#endif
|
||||||
if (lib_gl_handle == NULL) {
|
if (lib_gl_handle == NULL) {
|
||||||
throwFormattedException(env, "Error loading libGL.so.1: %s", dlerror());
|
throwFormattedException(env, "Error loading libGL.so.1: %s", dlerror());
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue