# HG changeset patch # User Sam Lantinga # Date 1147245398 0 # Node ID 79e6943b5f6c73ce0381d9f112b8ef579a283df0 # Parent 54f63955dc1f7dc6aab09c9dd9f19db0fc00b8df Fixed bug #222 SDL_macgl loads CFM library (OpenGLLibrary) even in Mach-O, when it should be loading the OpenGL.framework code instead diff -r 54f63955dc1f -r 79e6943b5f6c 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);