mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-22 22:05:06 +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* p;
|
||||||
GLubyte* end;
|
GLubyte* end;
|
||||||
GLuint len = _glewStrLen((const GLubyte*)name);
|
GLuint len = _glewStrLen((const GLubyte*)name);
|
||||||
if (glXQueryExtensionsString == NULL || glXGetCurrentDisplay == NULL) return GL_FALSE;
|
/* if (glXQueryExtensionsString == NULL || glXGetCurrentDisplay == NULL) return GL_FALSE; */
|
||||||
p = (GLubyte*)glXQueryExtensionsString(glXGetCurrentDisplay(), DefaultScreen(glXGetCurrentDisplay()));
|
/* 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;
|
if (0 == p) return GL_FALSE;
|
||||||
end = p + _glewStrLen(p);
|
end = p + _glewStrLen(p);
|
||||||
while (p < end)
|
while (p < end)
|
||||||
|
Loading…
Reference in New Issue
Block a user