diff options
author | Dave Airlie <[email protected]> | 2009-01-14 15:54:28 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2009-01-14 15:54:28 +1000 |
commit | 47e3a7d7942d722bc679852fec167cc3a8b5bdd4 (patch) | |
tree | a62db164cddd699d78995e395f2fa0f58413a263 /src/mesa/drivers/dri/radeon | |
parent | 4aa874c6368f2485d4ef72e2dc0230b7d443f9f0 (diff) |
radeon: get ctx right in copybuffer
Diffstat (limited to 'src/mesa/drivers/dri/radeon')
-rw-r--r-- | src/mesa/drivers/dri/radeon/common_misc.c | 6 |
1 files changed, 2 insertions, 4 deletions
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); } } |