diff options
author | Kristian Høgsberg <[email protected]> | 2010-02-11 17:10:19 -0500 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2010-02-12 16:30:38 -0500 |
commit | 93931d9e684cd5a5659c3f28f8da7294ac174542 (patch) | |
tree | c12bb7bddb15702167cb6adecfa0d82f399ad74d /src | |
parent | fd40b9ff32ac0ed02928a2b5516c8d678431806f (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/common/dri_util.c | 3 | ||||
-rw-r--r-- | src/mesa/drivers/dri/common/dri_util.h | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index 3649c296662..f5e7923835f 100644 --- a/src/mesa/drivers/dri/common/dri_util.c +++ b/src/mesa/drivers/dri/common/dri_util.c @@ -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. */ diff --git a/src/mesa/drivers/dri/common/dri_util.h b/src/mesa/drivers/dri/common/dri_util.h index 95df702f1ae..e9d5a9d9864 100644 --- a/src/mesa/drivers/dri/common/dri_util.h +++ b/src/mesa/drivers/dri/common/dri_util.h @@ -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; }; /** |