comparison src/video/macrom/SDL_romvideo.c @ 1032:c1c2efca4548

Date: Mon, 24 Jan 2005 21:37:56 +0800 From: Chris Taylor Subject: Patch to put back dynamic OpenGL loading for MPW I sent a patch a while ago that removes dynamic OpenGL loading for Macintosh Programmer's Workshop. Dynamic loading DOES actually work when an SDL program is built with MPW, it just has to be set up for it. (Whoops!!) This is the ideal way to get OpenGL extensions to work, which D2X uses quite a few of. This patch puts dynamic loading back in SDL for Mac OS 9. It applies to current CVS. I noticed that two members need to be set when DrawSprocket is used.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 25 Jan 2005 16:57:11 +0000
parents 46916168361d
children 609c060fd2a2
comparison
equal deleted inserted replaced
1031:3cf036d8861f 1032:c1c2efca4548
161 device->FlipHWSurface = NULL; 161 device->FlipHWSurface = NULL;
162 device->FreeHWSurface = ROM_FreeHWSurface; 162 device->FreeHWSurface = ROM_FreeHWSurface;
163 #ifdef HAVE_OPENGL 163 #ifdef HAVE_OPENGL
164 device->GL_MakeCurrent = Mac_GL_MakeCurrent; 164 device->GL_MakeCurrent = Mac_GL_MakeCurrent;
165 device->GL_SwapBuffers = Mac_GL_SwapBuffers; 165 device->GL_SwapBuffers = Mac_GL_SwapBuffers;
166 #ifdef __MWERKS__
167 device->GL_LoadLibrary = Mac_GL_LoadLibrary; 166 device->GL_LoadLibrary = Mac_GL_LoadLibrary;
168 device->GL_GetProcAddress = Mac_GL_GetProcAddress; 167 device->GL_GetProcAddress = Mac_GL_GetProcAddress;
169 #else
170 device->GL_LoadLibrary = NULL;
171 device->GL_GetProcAddress = NULL;
172 #endif // CodeWarrior
173 #endif // Have OpenGL 168 #endif // Have OpenGL
174 device->SetCaption = Mac_SetCaption; 169 device->SetCaption = Mac_SetCaption;
175 device->SetIcon = NULL; 170 device->SetIcon = NULL;
176 device->IconifyWindow = NULL; 171 device->IconifyWindow = NULL;
177 device->GrabInput = NULL; 172 device->GrabInput = NULL;