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