glx: Use the screen parameter everywhere instead of vis->screen, etc.
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 5 Feb 2010 01:01:42 +0000 (17:01 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 11 Feb 2010 23:40:29 +0000 (15:40 -0800)
src/glx/glxcmds.c

index 1be6ff397946d51166e620cb1c89f5cf93500313..9b4a6da065ca01d6d64f96ce84c616a9f8fe08d0 100644 (file)
@@ -371,8 +371,6 @@ CreateContext(Display * dpy, XVisualInfo * vis,
    GLXContext gc;
 #ifdef GLX_DIRECT_RENDERING
    __GLXscreenConfigs *const psc = GetGLXScreenConfigs(dpy, screen);
-#else
-   (void) screen;
 #endif
 
    if (dpy == NULL)
@@ -409,7 +407,7 @@ CreateContext(Display * dpy, XVisualInfo * vis,
       req->glxCode = X_GLXCreateContext;
       req->context = gc->xid = XAllocID(dpy);
       req->visual = vis->visualid;
-      req->screen = vis->screen;
+      req->screen = screen;
       req->shareList = shareList ? shareList->xid : None;
       req->isDirect = GC_IS_DIRECT(gc);
       break;
@@ -424,7 +422,7 @@ CreateContext(Display * dpy, XVisualInfo * vis,
       req->glxCode = X_GLXCreateNewContext;
       req->context = gc->xid = XAllocID(dpy);
       req->fbconfig = fbconfig->fbconfigID;
-      req->screen = fbconfig->screen;
+      req->screen = screen;
       req->renderType = renderType;
       req->shareList = shareList ? shareList->xid : None;
       req->isDirect = GC_IS_DIRECT(gc);
@@ -445,7 +443,7 @@ CreateContext(Display * dpy, XVisualInfo * vis,
       req->vendorCode = X_GLXvop_CreateContextWithConfigSGIX;
       req->context = gc->xid = XAllocID(dpy);
       req->fbconfig = fbconfig->fbconfigID;
-      req->screen = fbconfig->screen;
+      req->screen = screen;
       req->renderType = renderType;
       req->shareList = shareList ? shareList->xid : None;
       req->isDirect = GC_IS_DIRECT(gc);