From 146894c461edf8c0c71033d48a61c477c646e8e3 Mon Sep 17 00:00:00 2001 From: ikits Date: Thu, 24 Jun 2004 15:07:53 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@275 783a27ee-832a-0410-bc00-9f386506c6dd --- auto/src/glew_glx.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/auto/src/glew_glx.c b/auto/src/glew_glx.c index 6a94928..e9834d8 100644 --- a/auto/src/glew_glx.c +++ b/auto/src/glew_glx.c @@ -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)