2005-01-04 05:31:44 +00:00
|
|
|
}
|
|
|
|
ret = (len == 0);
|
2004-12-29 05:43:35 +00:00
|
|
|
}
|
2005-01-04 05:31:44 +00:00
|
|
|
return ret;
|
2004-12-29 07:24:49 +00:00
|
|
|
}
|
|
|
|
|
2014-06-24 15:03:28 +00:00
|
|
|
#if defined(GLEW_OSMESA)
|
|
|
|
#elif defined(_WIN32)
|
2004-12-29 07:24:49 +00:00
|
|
|
|
|
|
|
#if defined(GLEW_MX)
|
2012-05-07 14:05:12 +00:00
|
|
|
GLboolean GLEWAPIENTRY wglewContextIsSupported (const WGLEWContext* ctx, const char* name)
|
2004-12-29 07:24:49 +00:00
|
|
|
#else
|
2015-08-07 06:53:47 +00:00
|
|
|
GLboolean GLEWAPIENTRY wglewIsSupported (const char* name)
|
2004-12-29 07:24:49 +00:00
|
|
|
#endif
|
|
|
|
{
|
2014-10-14 09:24:49 +00:00
|
|
|
const GLubyte* pos = (const GLubyte*)name;
|
2004-12-29 07:24:49 +00:00
|
|
|
GLuint len = _glewStrLen(pos);
|
2005-01-04 05:31:44 +00:00
|
|
|
GLboolean ret = GL_TRUE;
|
|
|
|
while (ret && len > 0)
|
2004-12-29 05:43:35 +00:00
|
|
|
{
|
2005-01-04 05:31:44 +00:00
|
|
|
if (_glewStrSame1(&pos, &len, (const GLubyte*)"WGL_", 4))
|
|
|
|
{
|