mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-12-03 20:07:07 +00:00
22 lines
508 B
C
22 lines
508 B
C
}
|
|
ret = (len == 0);
|
|
}
|
|
return ret;
|
|
}
|
|
|
|
#elif !defined(__ANDROID__) && !defined(__native_client__) && !defined(__APPLE__) || defined(GLEW_APPLE_GLX)
|
|
|
|
#if defined(GLEW_MX)
|
|
GLboolean glxewContextIsSupported (const GLXEWContext* ctx, const char* name)
|
|
#else
|
|
GLboolean glxewIsSupported (const char* name)
|
|
#endif
|
|
{
|
|
GLubyte* pos = (GLubyte*)name;
|
|
GLuint len = _glewStrLen(pos);
|
|
GLboolean ret = GL_TRUE;
|
|
while (ret && len > 0)
|
|
{
|
|
if(_glewStrSame1(&pos, &len, (const GLubyte*)"GLX_", 4))
|
|
{
|