2004-12-29 05:43:35 +00:00
|
|
|
#ifdef GLEW_MX
|
2010-12-08 18:46:40 +00:00
|
|
|
GLboolean glewContextIsSupported (const GLEWContext* ctx, const char* name)
|
2004-12-29 05:43:35 +00:00
|
|
|
#else
|
2012-05-04 19:54:08 +00:00
|
|
|
GLboolean GLEWAPIENTRY glewIsSupported (const char* name)
|
2004-12-29 05:43:35 +00:00
|
|
|
#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*)"GL_", 3))
|
|
|
|
{
|