* Fix for SMP hack on OS X

This commit is contained in:
Tim Angus 2007-09-06 02:16:07 +00:00
parent c903576c59
commit 0951b69be5

View file

@ -37,6 +37,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
/* Just hack it for now. */ /* Just hack it for now. */
#ifdef MACOS_X #ifdef MACOS_X
#include <OpenGL/OpenGL.h>
typedef CGLContextObj QGLContext; typedef CGLContextObj QGLContext;
#define GLimp_GetCurrentContext() CGLGetCurrentContext() #define GLimp_GetCurrentContext() CGLGetCurrentContext()
#define GLimp_SetCurrentContext(ctx) CGLSetCurrentContext(ctx) #define GLimp_SetCurrentContext(ctx) CGLSetCurrentContext(ctx)