summaryrefslogtreecommitdiff
path: root/auto/src/glew_str_head.c
blob: 1e8d9637e934ac4b12c40dd105ef4d28826e1c72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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))
    {