Warning fixes for GCC 4.6.

This commit is contained in:
David Williams
2011-07-04 22:21:27 +01:00
parent 46ac159ec1
commit 834aa5d6c3
18 changed files with 21 additions and 32 deletions

View File

@ -8844,7 +8844,7 @@ GLboolean glxewGetExtension (const char* name)
GLuint len = _glewStrLen((const GLubyte*)name);
/* if (glXQueryExtensionsString == NULL || glXGetCurrentDisplay == NULL) return GL_FALSE; */
/* p = (GLubyte*)glXQueryExtensionsString(glXGetCurrentDisplay(), DefaultScreen(glXGetCurrentDisplay())); */
if (glXGetClientString == NULL || glXGetCurrentDisplay == NULL) return GL_FALSE;
if (glXGetCurrentDisplay == NULL) return GL_FALSE;
p = (GLubyte*)glXGetClientString(glXGetCurrentDisplay(), GLX_EXTENSIONS);
if (0 == p) return GL_FALSE;
end = p + _glewStrLen(p);