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,11 +209,12 @@ 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
#ifdef _X11 #ifdef _X11