mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-11 09:33:49 +00:00
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:
parent
6da17b1e8d
commit
dd96b1671a
@ -40,7 +40,11 @@ int main (void)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
glewExperimental = GL_TRUE;
|
glewExperimental = GL_TRUE;
|
||||||
|
#ifdef GLEW_MX
|
||||||
|
err = glewContextInit(ctx);
|
||||||
|
#else
|
||||||
err = glewInit();
|
err = glewInit();
|
||||||
|
#endif
|
||||||
if (GLEW_OK != err)
|
if (GLEW_OK != err)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Error [main]: glewInit failed: %s\n", glewGetErrorString(err));
|
fprintf(stderr, "Error [main]: glewInit failed: %s\n", glewGetErrorString(err));
|
||||||
|
@ -41,6 +41,12 @@
|
|||||||
|
|
||||||
static FILE* f;
|
static FILE* f;
|
||||||
|
|
||||||
|
#ifdef GLEW_MX
|
||||||
|
GLEWContext _ctx;
|
||||||
|
GLEWContext* ctx = &_ctx;
|
||||||
|
#define glewGetContext() ctx
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
GLboolean glewCreateContext (int* pixelformat);
|
GLboolean glewCreateContext (int* pixelformat);
|
||||||
#elif !defined(__APPLE__) || defined(GLEW_APPLE_GLX)
|
#elif !defined(__APPLE__) || defined(GLEW_APPLE_GLX)
|
||||||
|
Loading…
Reference in New Issue
Block a user