Probably fixed OS X errors on gl_wrap.cpp, but I really don't think that I want to fix the retarded warnings

Originally committed to SVN as r1144.
This commit is contained in:
Rodrigo Braz Monteiro 2007-04-25 18:57:56 +00:00
parent 3f0b3eebae
commit e04c25d378
1 changed files with 2 additions and 0 deletions

View File

@ -54,7 +54,9 @@
void* glGetProc(const char *str) { return wglGetProcAddress(str); } void* glGetProc(const char *str) { return wglGetProcAddress(str); }
#else #else
#ifdef __WXMAC_OSX__ #ifdef __WXMAC_OSX__
#ifndef HAVE_APPLE_OPENGL_FRAMEWORK
void* glGetProc(const char *str) { return aglGetProcAddress(str); } void* glGetProc(const char *str) { return aglGetProcAddress(str); }
#endif
#else #else
//void* glGetProc(const char *str) { return glXGetProcAddress((const GLubyte *)str); } //void* glGetProc(const char *str) { return glXGetProcAddress((const GLubyte *)str); }
#define glGetProc(a) glXGetProcAddress((const GLubyte *)(a)) #define glGetProc(a) glXGetProcAddress((const GLubyte *)(a))