dri: Store the loader private passed in at dri context creation
authorKristian Høgsberg <krh@bitplanet.net>
Thu, 11 Feb 2010 22:10:19 +0000 (17:10 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 12 Feb 2010 21:30:38 +0000 (16:30 -0500)
We just threw it away before, but we haven't had a use for it yet.

src/mesa/drivers/dri/common/dri_util.c
src/mesa/drivers/dri/common/dri_util.h

index 3649c29..f5e7923 100644 (file)
@@ -581,7 +581,8 @@ driCreateNewContext(__DRIscreen *psp, const __DRIconfig *config,
 
     pcp->driScreenPriv = psp;
     pcp->driDrawablePriv = NULL;
-
+    pcp->loaderPrivate = data;
+    
     /* When the first context is created for a screen, initialize a "dummy"
      * context.
      */
index 95df702..e9d5a9d 100644 (file)
@@ -413,6 +413,11 @@ struct __DRIcontextRec {
      * Pointer to screen on which this context was created.
      */
     __DRIscreen *driScreenPriv;
+
+    /**
+     * The loaders's private context data.  This structure is opaque.
+     */
+    void *loaderPrivate;
 };
 
 /**