Fixed mac opengl loading bug
This commit is contained in:
parent
16d13b2320
commit
d09cdc634f
|
@ -209,11 +209,12 @@ bool extgl_Open(JNIEnv *env) {
|
|||
return true;
|
||||
opengl_lib_handle = loadImage("/System/Library/Frameworks/OpenGL.framework/Libraries/libGL.dylib");
|
||||
if (opengl_lib_handle != NULL) {
|
||||
throwException(env, "Could not load OpenGL library");
|
||||
return true;
|
||||
} else
|
||||
} else {
|
||||
throwException(env, "Could not load OpenGL library");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef _X11
|
||||
|
|
Loading…
Reference in New Issue