dri: Store the loader private passed in at dri context creation

We just threw it away before, but we haven't had a use for it yet.
This commit is contained in:
Kristian Høgsberg
2010-02-11 17:10:19 -05:00
parent fd40b9ff32
commit 93931d9e68
2 changed files with 7 additions and 1 deletions
+2 -1
View 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.
*/
+5
View 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;
};
/**