Mercurial > sdl-ios-xcode
diff src/video/macrom/SDL_romvideo.c @ 916:46916168361d
Date: Sun, 25 Jul 2004 23:10:03 +0800
From: Chris Taylor
Subject: SDL for Macintosh Programmer's Workshop: removed dynamic loading
I'm working on a game called D2X which uses SDL, and I recently ported
it to Mac OS 9. I used MPW to build it. It uses OpenGL. To get it to
work, I had to build SDL so it doesn't dynamically load OpenGL. This is
because I don't think MPW supports dynamic loading. The following patch
makes sure when SDL is built under MPW, dynamic loading of shared
libraries is disabled.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 25 Jul 2004 19:43:56 +0000 |
parents | 0c3e00cc9580 |
children | c1c2efca4548 |
line wrap: on
line diff
--- a/src/video/macrom/SDL_romvideo.c Sun Jul 25 18:43:07 2004 +0000 +++ b/src/video/macrom/SDL_romvideo.c Sun Jul 25 19:43:56 2004 +0000 @@ -163,9 +163,14 @@ #ifdef HAVE_OPENGL device->GL_MakeCurrent = Mac_GL_MakeCurrent; device->GL_SwapBuffers = Mac_GL_SwapBuffers; +#ifdef __MWERKS__ device->GL_LoadLibrary = Mac_GL_LoadLibrary; device->GL_GetProcAddress = Mac_GL_GetProcAddress; -#endif +#else + device->GL_LoadLibrary = NULL; + device->GL_GetProcAddress = NULL; +#endif // CodeWarrior +#endif // Have OpenGL device->SetCaption = Mac_SetCaption; device->SetIcon = NULL; device->IconifyWindow = NULL;