added GLEW_MX to glewinfo

git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@260 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
ikits 2004-05-09 09:08:20 +00:00
parent 6da17b1e8d
commit dd96b1671a
2 changed files with 10 additions and 0 deletions

View File

@ -40,7 +40,11 @@ int main (void)
return 1;
}
glewExperimental = GL_TRUE;
#ifdef GLEW_MX
err = glewContextInit(ctx);
#else
err = glewInit();
#endif
if (GLEW_OK != err)
{
fprintf(stderr, "Error [main]: glewInit failed: %s\n", glewGetErrorString(err));

View File

@ -41,6 +41,12 @@
static FILE* f;
#ifdef GLEW_MX
GLEWContext _ctx;
GLEWContext* ctx = &_ctx;
#define glewGetContext() ctx
#endif
#if defined(_WIN32)
GLboolean glewCreateContext (int* pixelformat);
#elif !defined(__APPLE__) || defined(GLEW_APPLE_GLX)