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
|
|
|
}
|
|
|
|
|
2013-12-09 21:20:56 +00:00
|
|
|
#elif !defined(__ANDROID__) && !defined(__native_client__) && !defined(__HAIKU__) && !defined(__APPLE__) || defined(GLEW_APPLE_GLX)
|
2004-12-29 07:24:49 +00:00
|
|
|
|
|
|
|
#if defined(GLEW_MX)
|
2010-12-08 18:46:40 +00:00
|
|
|
GLboolean glxewContextIsSupported (const GLXEWContext* ctx, const char* name)
|
2004-12-29 07:24:49 +00:00
|
|
|
#else
|
|
|
|
GLboolean glxewIsSupported (const char* name)
|
|
|
|
#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*)"GLX_", 4))
|
|
|
|
{
|