summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r200
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2012-09-29 08:47:55 -0600
committerBrian Paul <brianp@vmware.com>2012-10-05 17:13:03 -0600
commit4c9042d21dca0be75f196f952a687675c140aac2 (patch)
treecb97b27a31e3c10766a8a1ef9de4d6b4631e1e03 /src/mesa/drivers/dri/r200
parent5a63634a136caa905e7a1fa5da8fe5dc9f26add5 (diff)
radeon/r200: remove use of gl_context::DriverCtx field
Diffstat (limited to 'src/mesa/drivers/dri/r200')
-rw-r--r--src/mesa/drivers/dri/r200/r200_context.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_context.h b/src/mesa/drivers/dri/r200/r200_context.h
index 778934d0fd..fb25dceb99 100644
--- a/src/mesa/drivers/dri/r200/r200_context.h
+++ b/src/mesa/drivers/dri/r200/r200_context.h
@@ -623,7 +623,12 @@ struct r200_context {
struct ati_fragment_shader *afs_loaded;
};
-#define R200_CONTEXT(ctx) ((r200ContextPtr)(ctx->DriverCtx))
+
+static inline r200ContextPtr
+R200_CONTEXT(struct gl_context *ctx)
+{
+ return (r200ContextPtr) ctx;
+}
extern void r200DestroyContext( __DRIcontext *driContextPriv );