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
|
|
|
}
|
|
|
|
|
2004-12-29 05:43:35 +00:00
|
|
|
#if defined(_WIN32)
|
2004-12-29 07:24:49 +00:00
|
|
|
|
|
|
|
#if defined(GLEW_MX)
|
|
|
|
GLboolean wglewContextIsSupported (WGLEWContext* ctx, const char* name)
|
|
|
|
#else
|
|
|
|
GLboolean wglewIsSupported (const char* name)
|
|
|
|
#endif
|
|
|
|
{
|
|
|
|
GLubyte* pos = (GLubyte*)name;
|
|
|
|
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))
|
|
|
|
{
|