---
 src/glx/x11/glxcmds.c |    8 +++-----
 src/glx/x11/glxext.c  |    8 ++------
 2 files changed, 5 insertions(+), 11 deletions(-)

diff --git a/src/glx/x11/glxcmds.c b/src/glx/x11/glxcmds.c
index ff04853..1222625 100644
--- a/src/glx/x11/glxcmds.c
+++ b/src/glx/x11/glxcmds.c
@@ -1315,9 +1315,8 @@ PUBLIC const char *glXQueryExtensionsString( Display 
*dpy, int screen )
 
     if (!psc->effectiveGLXexts) {
         if (!psc->serverGLXexts) {
-           psc->serverGLXexts = __glXGetStringFromServer(dpy, 
priv->majorOpcode,
-                                                  X_GLXQueryServerString,
-                                                  screen, GLX_EXTENSIONS);
+           psc->serverGLXexts =
+              __glXQueryServerString(dpy, screen, GLX_EXTENSIONS);
        }
 
        __glXCalculateUsableExtensions(psc,
@@ -1372,8 +1371,7 @@ PUBLIC const char *glXQueryServerString( Display *dpy, 
int screen, int name )
     }
 
     if ( *str == NULL ) {
-       *str = __glXGetStringFromServer(dpy, priv->majorOpcode,
-                                       X_GLXQueryServerString, screen, name);
+       *str = __glXQueryServerString(dpy, screen, name);
     }
     
     return *str;
diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c
index 9efb7b3..c5fada9 100644
--- a/src/glx/x11/glxext.c
+++ b/src/glx/x11/glxext.c
@@ -551,9 +551,7 @@ getFBConfigs(Display * dpy, __GLXdisplayPrivate * priv, int 
screen)
    __GLXscreenConfigs *psc;
 
    psc = priv->screenConfigs + screen;
-   psc->serverGLXexts = __glXGetStringFromServer(dpy, priv->majorOpcode,
-                                                 X_GLXQueryServerString,
-                                                 screen, GLX_EXTENSIONS);
+   psc->serverGLXexts = __glXQueryServerString(dpy, screen, GLX_EXTENSIONS);
 
    LockDisplay(dpy);
 
@@ -611,9 +609,7 @@ AllocAndFetchScreenConfigs(Display * dpy, 
__GLXdisplayPrivate * priv)
    memset(psc, 0, screens * sizeof(__GLXscreenConfigs));
    priv->screenConfigs = psc;
 
-   priv->serverGLXversion = __glXGetStringFromServer(dpy, priv->majorOpcode,
-                                                     X_GLXQueryServerString,
-                                                     0, GLX_VERSION);
+   priv->serverGLXversion = __glXQueryServerString(dpy, 0, GLX_VERSION);
    if (priv->serverGLXversion == NULL) {
       FreeScreenConfigs(priv);
       return GL_FALSE;
-- 
1.6.0.2


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to