diff --git a/auto/src/glewinfo_head.c b/auto/src/glewinfo_head.c index e1070c5..95a36a7 100644 --- a/auto/src/glewinfo_head.c +++ b/auto/src/glewinfo_head.c @@ -8,6 +8,10 @@ #include #endif +#ifdef GLEW_REGAL +#include +#endif + static FILE* f; #ifdef GLEW_MX diff --git a/auto/src/glewinfo_tail.c b/auto/src/glewinfo_tail.c index f778e71..4fe17ae 100644 --- a/auto/src/glewinfo_tail.c +++ b/auto/src/glewinfo_tail.c @@ -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; }