diff options
author | github-classroom[bot] <66690702+github-classroom[bot]@users.noreply.github.com> | 2024-03-19 02:01:17 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-19 02:01:17 +0000 |
commit | 0f8d0e3cfdbd9b11b2357ed3e1a11375e7af8e80 (patch) | |
tree | 48b88b3b3b3a522a90c38b2178363a163a32f2ee /glew/auto/src/glew_str_glx.c |
Initial commit
Diffstat (limited to 'glew/auto/src/glew_str_glx.c')
-rw-r--r-- | glew/auto/src/glew_str_glx.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/glew/auto/src/glew_str_glx.c b/glew/auto/src/glew_str_glx.c new file mode 100644 index 0000000..893d741 --- /dev/null +++ b/glew/auto/src/glew_str_glx.c @@ -0,0 +1,17 @@ + } + ret = (len == 0); + } + return ret; +} + +#elif !defined(GLEW_OSMESA) && !defined(GLEW_EGL) && !defined(__ANDROID__) && !defined(__native_client__) && !defined(__HAIKU__) && !defined(__APPLE__) || defined(GLEW_APPLE_GLX) + +GLboolean glxewIsSupported (const char* name) +{ + 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)) + { |