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 3649c296662d66b9462144545adaf8690d675155..f5e7923835f715bfa6cf9c3689acf705449b6193 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 95df702f1ae5f96d64caf781c40530b48a73b50f..e9d5a9d98642c382f09e14089d2cbd914bc5b858 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;
 };
 
 /**