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 );
/* free the Mesa context data */
_mesa_free_context_data(&radeon->glCtx);
- /* _mesa_destroy_context() might result in calls to functions that
- * depend on the DriverCtx, so don't set it to NULL before.
- *
- * radeon->glCtx->DriverCtx = NULL;
- */
/* free the option cache */
driDestroyOptionCache(&radeon->optionCache);
} vtbl;
};
-#define RADEON_CONTEXT(glctx) ((radeonContextPtr)(ctx->DriverCtx))
+static inline radeonContextPtr RADEON_CONTEXT(struct gl_context *ctx)
+{
+ return (radeonContextPtr) ctx;
+}
static inline __DRIdrawable* radeon_get_drawable(radeonContextPtr radeon)
{
};
-#define R100_CONTEXT(ctx) ((r100ContextPtr)(ctx->DriverCtx))
+static inline r100ContextPtr
+R100_CONTEXT(struct gl_context *ctx)
+{
+ return (r100ContextPtr) ctx;
+}
+
#define RADEON_OLD_PACKETS 1