summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/drivers/dri/common')
-rw-r--r--src/mesa/drivers/dri/common/dri_sw.c2
-rw-r--r--src/mesa/drivers/dri/common/dri_sw.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/common/dri_sw.c b/src/mesa/drivers/dri/common/dri_sw.c
index 4b87a7f32f2..b7f9036f473 100644
--- a/src/mesa/drivers/dri/common/dri_sw.c
+++ b/src/mesa/drivers/dri/common/dri_sw.c
@@ -99,7 +99,7 @@ driCreateNewContext(__DRIscreen *psp, const __DRIconfig *config,
__DRIcontext *shared, void *data)
{
__DRIcontext *pcp;
- void * const shareCtx = (shared != NULL) ? &shared->Base : NULL;
+ void * const shareCtx = (shared != NULL) ? shared->driverPrivate : NULL;
pcp = CALLOC_STRUCT(__DRIcontextRec);
if (!pcp)
diff --git a/src/mesa/drivers/dri/common/dri_sw.h b/src/mesa/drivers/dri/common/dri_sw.h
index b7257b14a22..93e96246548 100644
--- a/src/mesa/drivers/dri/common/dri_sw.h
+++ b/src/mesa/drivers/dri/common/dri_sw.h
@@ -54,7 +54,7 @@ struct __DRIscreenRec {
struct __DRIcontextRec {
- GLcontext Base;
+ void *driverPrivate;
void *loaderPrivate;