From 4481517b376d943846a8bbb7eb88f0941a958e17 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 10 May 2006 07:16:38 +0000 Subject: [PATCH] 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/video/maccommon/SDL_macgl.c b/src/video/maccommon/SDL_macgl.c index 063ab417b..76bc52927 100644 --- a/src/video/maccommon/SDL_macgl.c +++ b/src/video/maccommon/SDL_macgl.c @@ -168,7 +168,11 @@ void Mac_GL_SwapBuffers(_THIS) 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);