diff options
author | Brian Paul <[email protected]> | 2012-09-29 08:47:55 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-10-05 17:13:03 -0600 |
commit | 4c9042d21dca0be75f196f952a687675c140aac2 (patch) | |
tree | cb97b27a31e3c10766a8a1ef9de4d6b4631e1e03 /src/mesa/drivers/dri/radeon/radeon_context.h | |
parent | 5a63634a136caa905e7a1fa5da8fe5dc9f26add5 (diff) |
radeon/r200: remove use of gl_context::DriverCtx field
Diffstat (limited to 'src/mesa/drivers/dri/radeon/radeon_context.h')
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_context.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_context.h b/src/mesa/drivers/dri/radeon/radeon_context.h index cb036cd6570..6ad1d4d48ad 100644 --- a/src/mesa/drivers/dri/radeon/radeon_context.h +++ b/src/mesa/drivers/dri/radeon/radeon_context.h @@ -442,7 +442,12 @@ struct r100_context { }; -#define R100_CONTEXT(ctx) ((r100ContextPtr)(ctx->DriverCtx)) +static inline r100ContextPtr +R100_CONTEXT(struct gl_context *ctx) +{ + return (r100ContextPtr) ctx; +} + #define RADEON_OLD_PACKETS 1 |