Fixed bug #222
authorSam Lantinga <slouken@libsdl.org>
Wed, 10 May 2006 07:16:38 +0000
changeset 1803 79e6943b5f6c
parent 1802 54f63955dc1f
child 1804 2bf1b143745b
Fixed bug #222 SDL_macgl loads CFM library (OpenGLLibrary) even in Mach-O, when it should be loading the OpenGL.framework code instead
src/video/maccommon/SDL_macgl.c
--- a/src/video/maccommon/SDL_macgl.c	Wed May 10 07:08:41 2006 +0000
+++ b/src/video/maccommon/SDL_macgl.c	Wed May 10 07:16:38 2006 +0000
@@ -168,7 +168,11 @@
 int Mac_GL_LoadLibrary(_THIS, const char *location)
 {
 	if (location == NULL)
+#if __MACH__
+		location = "/System/Library/Frameworks/OpenGL.framework/OpenGL";
+#else
 		location = "OpenGLLibrary";
+#endif
 
 	this->hidden->libraryHandle = SDL_LoadObject(location);