Commit 4b07c939 authored by Nigel Stewart's avatar Nigel Stewart
Browse files

Fixup: glewinfo on Mac needs to call RegalMakeCurrent manually.

parent a53c68dd
...@@ -8,6 +8,10 @@ ...@@ -8,6 +8,10 @@
#include <GL/glxew.h> #include <GL/glxew.h>
#endif #endif
#ifdef GLEW_REGAL
#include <GL/Regal.h>
#endif
static FILE* f; static FILE* f;
#ifdef GLEW_MX #ifdef GLEW_MX
......
...@@ -200,6 +200,10 @@ GLboolean glewCreateContext () ...@@ -200,6 +200,10 @@ GLboolean glewCreateContext ()
/*aglSetDrawable(ctx, GetWindowPort(wnd));*/ /*aglSetDrawable(ctx, GetWindowPort(wnd));*/
octx = aglGetCurrentContext(); octx = aglGetCurrentContext();
if (GL_FALSE == aglSetCurrentContext(ctx)) return GL_TRUE; 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; return GL_FALSE;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment