changeset 1803:79e6943b5f6c

Fixed bug #222 SDL_macgl loads CFM library (OpenGLLibrary) even in Mach-O, when it should be loading the OpenGL.framework code instead
author Sam Lantinga <slouken@libsdl.org>
date Wed, 10 May 2006 07:16:38 +0000
parents 54f63955dc1f
children 2bf1b143745b
files src/video/maccommon/SDL_macgl.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);