From: Dave Airlie Date: Wed, 14 Jan 2009 05:54:28 +0000 (+1000) Subject: radeon: get ctx right in copybuffer X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=47e3a7d7942d722bc679852fec167cc3a8b5bdd4;p=mesa.git radeon: get ctx right in copybuffer --- diff --git a/src/mesa/drivers/dri/radeon/common_misc.c b/src/mesa/drivers/dri/radeon/common_misc.c index 95e2efd5e8e..7078757261c 100644 --- a/src/mesa/drivers/dri/radeon/common_misc.c +++ b/src/mesa/drivers/dri/radeon/common_misc.c @@ -339,7 +339,6 @@ static void radeonWaitForIdle(radeonContextPtr radeon) void radeonCopyBuffer( __DRIdrawablePrivate *dPriv, const drm_clip_rect_t *rect) { - GLcontext *ctx; radeonContextPtr rmesa; GLint nbox, i, ret; GLboolean missed_target; @@ -350,14 +349,13 @@ void radeonCopyBuffer( __DRIdrawablePrivate *dPriv, assert(dPriv->driContextPriv); assert(dPriv->driContextPriv->driverPrivate); - ctx = (GLcontext *) dPriv->driContextPriv->driverPrivate; rmesa = (radeonContextPtr) dPriv->driContextPriv->driverPrivate; if ( RADEON_DEBUG & DEBUG_IOCTL ) { fprintf( stderr, "\n%s( %p )\n\n", __FUNCTION__, (void *) rmesa->glCtx ); } - rmesa->vtbl.flush(ctx); + rmesa->vtbl.flush(rmesa->glCtx); LOCK_HARDWARE( rmesa ); /* Throttle the frame rate -- only allow one pending swap buffers @@ -427,7 +425,7 @@ void radeonCopyBuffer( __DRIdrawablePrivate *dPriv, } rmesa->swap_ust = ust; - rmesa->vtbl.set_all_dirty(ctx); + rmesa->vtbl.set_all_dirty(rmesa->glCtx); } }