glx: Drop duplicate psc field in dri context struct
authorKristian Høgsberg <krh@bitplanet.net>
Mon, 26 Jul 2010 19:17:00 +0000 (15:17 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 26 Jul 2010 19:18:56 +0000 (15:18 -0400)
Same problem as fixed for drisw in 4d58b5b482d06ab8d4c4b2db33d0b48b7c82d064.

src/glx/dri_glx.c

index eaf8e3b7f25be640bf71f26cfa8e8607a2669904..fd14285a481ec20f79b6866197318fef447c5135 100644 (file)
@@ -82,7 +82,6 @@ struct dri_context
    __GLXDRIcontext dri_vtable;
    __DRIcontext *driContext;
    XID hwContextID;
-   __GLXscreenConfigs *psc;
 };
 
 struct dri_drawable
@@ -524,7 +523,7 @@ driBindContext(__GLXcontext *context,
               __GLXDRIdrawable *draw, __GLXDRIdrawable *read)
 {
    struct dri_context *pcp = (struct dri_context *) context;
-   struct dri_screen *psc = (struct dri_screen *) pcp->psc;
+   struct dri_screen *psc = (struct dri_screen *) pcp->base.psc;
    struct dri_drawable *pdr = (struct dri_drawable *) draw;
    struct dri_drawable *prd = (struct dri_drawable *) read;
 
@@ -536,7 +535,7 @@ static void
 driUnbindContext(__GLXcontext * context)
 {
    struct dri_context *pcp = (struct dri_context *) context;
-   struct dri_screen *psc = (struct dri_screen *) pcp->psc;
+   struct dri_screen *psc = (struct dri_screen *) pcp->base.psc;
 
    (*psc->core->unbindContext) (pcp->driContext);
 }