*** 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:
ikits 2004-06-24 15:07:53 +00:00
parent 950561d04b
commit 146894c461
1 changed files with 4 additions and 2 deletions

View File

@ -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)