summaryrefslogtreecommitdiff
path: root/auto/src/glew_str_head.c
diff options
context:
space:
mode:
Diffstat (limited to 'auto/src/glew_str_head.c')
-rw-r--r--auto/src/glew_str_head.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/auto/src/glew_str_head.c b/auto/src/glew_str_head.c
new file mode 100644
index 0000000..1e8d963
--- /dev/null
+++ b/auto/src/glew_str_head.c
@@ -0,0 +1,13 @@
+#ifdef GLEW_MX
+GLboolean GLEWAPIENTRY glewContextIsSupported (const GLEWContext* ctx, const char* name)
+#else
+GLboolean GLEWAPIENTRY glewIsSupported (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*)"GL_", 3))
+ {