mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-25 23:31:56 +00:00
Fixup: glewinfo on Mac needs to call RegalMakeCurrent manually.
This commit is contained in:
parent
a53c68ddd7
commit
4b07c93946
@ -8,6 +8,10 @@
|
||||
#include <GL/glxew.h>
|
||||
#endif
|
||||
|
||||
#ifdef GLEW_REGAL
|
||||
#include <GL/Regal.h>
|
||||
#endif
|
||||
|
||||
static FILE* f;
|
||||
|
||||
#ifdef GLEW_MX
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user