Fixed mac opengl loading bug

This commit is contained in:
Elias Naur 2004-12-13 11:11:28 +00:00
parent 16d13b2320
commit d09cdc634f
1 changed files with 3 additions and 2 deletions

View File

@ -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