From ff42a00402deab3034163c2b76c2082cce39d901 Mon Sep 17 00:00:00 2001 From: Nicolai Haehnle Date: Sun, 17 Oct 2004 20:26:06 +0000 Subject: - FIX: flickering - Scissor support works now --- src/mesa/drivers/dri/r300/radeon_context.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/mesa/drivers/dri/r300/radeon_context.c') diff --git a/src/mesa/drivers/dri/r300/radeon_context.c b/src/mesa/drivers/dri/r300/radeon_context.c index d04045d971..b2cb9cfb5f 100644 --- a/src/mesa/drivers/dri/r300/radeon_context.c +++ b/src/mesa/drivers/dri/r300/radeon_context.c @@ -206,6 +206,23 @@ GLboolean radeonInitContext(radeonContextPtr radeon, } +/** + * Cleanup common context fields. + * Called by r200DestroyContext/r300DestroyContext + */ +void radeonCleanupContext(radeonContextPtr radeon) +{ + /* free the Mesa context */ + radeon->glCtx->DriverCtx = NULL; + _mesa_destroy_context(radeon->glCtx); + + if (radeon->state.scissor.pClipRects) { + FREE(radeon->state.scissor.pClipRects); + radeon->state.scissor.pClipRects = 0; + } +} + + /** * Swap front and back buffer. */ -- cgit v1.2.3