mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-03-02 19:44:35 +01:00
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;
|
||||
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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue