diff options
Diffstat (limited to 'auto/src/glew_str_glx.c')
-rw-r--r-- | auto/src/glew_str_glx.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/auto/src/glew_str_glx.c b/auto/src/glew_str_glx.c new file mode 100644 index 0000000..e841475 --- /dev/null +++ b/auto/src/glew_str_glx.c @@ -0,0 +1,21 @@ + } + ret = (len == 0); + } + return ret; +} + +#elif !defined(__ANDROID__) && !defined(__native_client__) && !defined(__HAIKU__) && !defined(__APPLE__) || defined(GLEW_APPLE_GLX) + +#if defined(GLEW_MX) +GLboolean glxewContextIsSupported (const GLXEWContext* ctx, const char* name) +#else +GLboolean glxewIsSupported (const char* name) +#endif +{ + const GLubyte* pos = (const GLubyte*)name; + GLuint len = _glewStrLen(pos); + GLboolean ret = GL_TRUE; + while (ret && len > 0) + { + if(_glewStrSame1(&pos, &len, (const GLubyte*)"GLX_", 4)) + { |