comparison src/video/SDL_video.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 475166d13b44
children 68f607298ca9
comparison
equal deleted inserted replaced
1031:3cf036d8861f 1032:c1c2efca4548
741 741
742 #ifdef HAVE_OPENGL 742 #ifdef HAVE_OPENGL
743 /* Load GL symbols (before MakeCurrent, where we need glGetString). */ 743 /* Load GL symbols (before MakeCurrent, where we need glGetString). */
744 if ( flags & (SDL_OPENGL | SDL_OPENGLBLIT) ) { 744 if ( flags & (SDL_OPENGL | SDL_OPENGLBLIT) ) {
745 745
746 #if (defined(macintosh) && !defined(__MWERKS__)) 746 #if defined(__QNXNTO__) && (_NTO_VERSION < 630)
747 #define __SDL_NOGETPROCADDR__
748 #elif defined(__QNXNTO__) && (_NTO_VERSION < 630)
749 #define __SDL_NOGETPROCADDR__ 747 #define __SDL_NOGETPROCADDR__
750 #elif defined(__MINT__) 748 #elif defined(__MINT__)
751 #define __SDL_NOGETPROCADDR__ 749 #define __SDL_NOGETPROCADDR__
752 #endif 750 #endif
753 #ifdef __SDL_NOGETPROCADDR__ 751 #ifdef __SDL_NOGETPROCADDR__