Fixed bug #222
authorSam Lantinga
Wed, 10 May 2006 07:16:38 +0000
changeset 180379e6943b5f6c
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
     1.1 --- a/src/video/maccommon/SDL_macgl.c	Wed May 10 07:08:41 2006 +0000
     1.2 +++ b/src/video/maccommon/SDL_macgl.c	Wed May 10 07:16:38 2006 +0000
     1.3 @@ -168,7 +168,11 @@
     1.4  int Mac_GL_LoadLibrary(_THIS, const char *location)
     1.5  {
     1.6  	if (location == NULL)
     1.7 +#if __MACH__
     1.8 +		location = "/System/Library/Frameworks/OpenGL.framework/OpenGL";
     1.9 +#else
    1.10  		location = "OpenGLLibrary";
    1.11 +#endif
    1.12  
    1.13  	this->hidden->libraryHandle = SDL_LoadObject(location);
    1.14