summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r300/radeon_context.c
diff options
context:
space:
mode:
authorNicolai Haehnle <prefect_@gmx.net>2004-10-17 20:26:06 +0000
committerNicolai Haehnle <prefect_@gmx.net>2004-10-17 20:26:06 +0000
commitff42a00402deab3034163c2b76c2082cce39d901 (patch)
tree0c81aba24705d6643d0b888265270e494ce344ce /src/mesa/drivers/dri/r300/radeon_context.c
parent158a251a6b8ffa02387c767a00dc960b49098022 (diff)
- FIX: flickering
- Scissor support works now
Diffstat (limited to 'src/mesa/drivers/dri/r300/radeon_context.c')
-rw-r--r--src/mesa/drivers/dri/r300/radeon_context.c17
1 files changed, 17 insertions, 0 deletions
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
@@ -207,6 +207,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.
*/
void radeonSwapBuffers(__DRIdrawablePrivate * dPriv)