mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-11 09:33:49 +00:00
*** empty log message ***
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@275 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
parent
950561d04b
commit
146894c461
@ -8,8 +8,10 @@ GLboolean glxewGetExtension (const char* name)
|
||||
GLubyte* p;
|
||||
GLubyte* end;
|
||||
GLuint len = _glewStrLen((const GLubyte*)name);
|
||||
if (glXQueryExtensionsString == NULL || glXGetCurrentDisplay == NULL) return GL_FALSE;
|
||||
p = (GLubyte*)glXQueryExtensionsString(glXGetCurrentDisplay(), DefaultScreen(glXGetCurrentDisplay()));
|
||||
/* if (glXQueryExtensionsString == NULL || glXGetCurrentDisplay == NULL) return GL_FALSE; */
|
||||
/* p = (GLubyte*)glXQueryExtensionsString(glXGetCurrentDisplay(), DefaultScreen(glXGetCurrentDisplay())); */
|
||||
if (glXGetClientString == NULL || glXGetCurrentDisplay == NULL) return GL_FALSE;
|
||||
p = (GLubyte*)glXGetClientString(glXGetCurrentDisplay(), GLX_EXTENSIONS);
|
||||
if (0 == p) return GL_FALSE;
|
||||
end = p + _glewStrLen(p);
|
||||
while (p < end)
|
||||
|
Loading…
Reference in New Issue
Block a user