Fixup: glewinfo on Mac needs to call RegalMakeCurrent manually.

This commit is contained in:
Nigel Stewart 2012-07-23 16:19:50 -05:00
parent a53c68ddd7
commit 4b07c93946
2 changed files with 8 additions and 0 deletions

View File

@ -8,6 +8,10 @@
#include <GL/glxew.h>
#endif
#ifdef GLEW_REGAL
#include <GL/Regal.h>
#endif
static FILE* f;
#ifdef GLEW_MX

View File

@ -200,6 +200,10 @@ GLboolean glewCreateContext ()
/*aglSetDrawable(ctx, GetWindowPort(wnd));*/
octx = aglGetCurrentContext();
if (GL_FALSE == aglSetCurrentContext(ctx)) return GL_TRUE;
/* Needed for Regal on the Mac */
#if defined(GLEW_REGAL) && defined(__APPLE__)
RegalMakeCurrent(octx);
#endif
return GL_FALSE;
}