glx: Move __driContext field out of __GLXcontextRec
authorKristian Høgsberg <krh@bitplanet.net>
Wed, 21 Jul 2010 17:55:30 +0000 (13:55 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 22 Jul 2010 02:17:24 +0000 (22:17 -0400)
src/glx/dri2_glx.c
src/glx/glxclient.h

index be8671d906944551afb01896fc47a571b24be3c5..6ce5ae6fc9c3adedf9fa0643630e930300578d12 100644 (file)
@@ -168,7 +168,6 @@ dri2CreateContext(__GLXscreenConfigs *base,
    pcp->driContext =
       (*psc->dri2->createNewContext) (psc->driScreen,
                                       config->driConfig, shared, pcp);
-   gc->__driContext = pcp->driContext;
 
    if (pcp->driContext == NULL) {
       Xfree(pcp);
@@ -635,6 +634,7 @@ dri2_bind_tex_image(Display * dpy,
    struct dri2_display *pdp =
       (struct dri2_display *) dpyPriv->dri2Display;
    struct dri2_screen *psc = (struct dri2_screen *) base->psc;
+   struct dri2_context *pcp = (struct dri2_context *) gc->driContext;
 
    if (pdraw != NULL) {
 
@@ -645,13 +645,13 @@ dri2_bind_tex_image(Display * dpy,
 
       if (psc->texBuffer->base.version >= 2 &&
          psc->texBuffer->setTexBuffer2 != NULL) {
-        (*psc->texBuffer->setTexBuffer2) (gc->__driContext,
+        (*psc->texBuffer->setTexBuffer2) (pcp->driContext,
                                           pdraw->base.textureTarget,
                                           pdraw->base.textureFormat,
                                           pdraw->driDrawable);
       }
       else {
-        (*psc->texBuffer->setTexBuffer) (gc->__driContext,
+        (*psc->texBuffer->setTexBuffer) (pcp->driContext,
                                          pdraw->base.textureTarget,
                                          pdraw->driDrawable);
       }
index f788b7a28f44d4f81c6c0652fc7264dbe442fdec..67f69b8e16884b6129c82a6e5e784d0c90ea6280 100644 (file)
@@ -418,7 +418,6 @@ struct __GLXcontextRec
    Bool do_destroy;
 #else
    __GLXDRIcontext *driContext;
-   __DRIcontext *__driContext;
 #endif
 #endif