mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-13 10:33:48 +00:00
471af2c0d6
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@343 783a27ee-832a-0410-bc00-9f386506c6dd
14 lines
334 B
C
14 lines
334 B
C
#ifdef GLEW_MX
|
|
GLboolean glewContextIsSupported (GLEWContext* ctx, const char* name)
|
|
#else
|
|
GLboolean glewIsSupported (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*)"GL_", 3))
|
|
{
|