From d09cdc634fbdd2c90be4402e5cdf08834131a917 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Mon, 13 Dec 2004 11:11:28 +0000 Subject: [PATCH] Fixed mac opengl loading bug --- src/native/common/extgl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/native/common/extgl.c b/src/native/common/extgl.c index 34a5c389..b60c3417 100644 --- a/src/native/common/extgl.c +++ b/src/native/common/extgl.c @@ -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