diff options
author | Ben Skeggs <[email protected]> | 2005-05-06 08:41:50 +0000 |
---|---|---|
committer | Ben Skeggs <[email protected]> | 2005-05-06 08:41:50 +0000 |
commit | e133984f517f2273236ca8b22c2a94276c950c55 (patch) | |
tree | ad5d5678e68cf405fd585d179e7a166f32db1a2f /src/mesa/drivers/dri/r300/radeon_lock.c | |
parent | bd8162aaac225fdbdc228c4419d08fa3751b9af6 (diff) |
Updated for EXT_framebuffer_object changes. I don't know if this is correct, but it seems to work
Diffstat (limited to 'src/mesa/drivers/dri/r300/radeon_lock.c')
-rw-r--r-- | src/mesa/drivers/dri/r300/radeon_lock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/r300/radeon_lock.c b/src/mesa/drivers/dri/r300/radeon_lock.c index 7468bce0128..8f9fd8e388d 100644 --- a/src/mesa/drivers/dri/r300/radeon_lock.c +++ b/src/mesa/drivers/dri/r300/radeon_lock.c @@ -53,7 +53,7 @@ static void radeonUpdatePageFlipping(radeonContextPtr radeon) radeon->doPageFlip = radeon->sarea->pfState; - use_back = (radeon->glCtx->Color._DrawDestMask[0] == DD_BACK_LEFT_BIT); + use_back = (radeon->glCtx->DrawBuffer->_ColorDrawBufferMask[0] == BUFFER_BIT_BACK_LEFT); use_back ^= (radeon->sarea->pfCurrentPage == 1); if (use_back) { @@ -83,7 +83,7 @@ static void r200RegainedLock(r200ContextPtr r200) r200->hw.ctx.cmd[CTX_RB3D_COLORPITCH] = r200->radeon.state.color.drawPitch; - if (r200->radeon.glCtx->Color._DrawDestMask[0] == DD_BACK_LEFT_BIT) + if (r200->radeon.glCtx->DrawBuffer->_ColorDrawBufferMask[0] == BUFFER_BIT_BACK_LEFT) radeonSetCliprects(&r200->radeon, GL_BACK_LEFT); else radeonSetCliprects(&r200->radeon, GL_FRONT_LEFT); @@ -104,7 +104,7 @@ static void r300RegainedLock(radeonContextPtr radeon) if (radeon->lastStamp != dPriv->lastStamp) { radeonUpdatePageFlipping(radeon); - if (radeon->glCtx->Color._DrawDestMask[0] == DD_BACK_LEFT_BIT) + if (radeon->glCtx->DrawBuffer->_ColorDrawBufferMask[0] == BUFFER_BIT_BACK_LEFT) radeonSetCliprects(radeon, GL_BACK_LEFT); else radeonSetCliprects(radeon, GL_FRONT_LEFT); |