summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r300/r300_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/r300_context.c
parent158a251a6b8ffa02387c767a00dc960b49098022 (diff)
- FIX: flickering
- Scissor support works now
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_context.c')
-rw-r--r--src/mesa/drivers/dri/r300/r300_context.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_context.c b/src/mesa/drivers/dri/r300/r300_context.c
index 271ea17e1e..6e98bd1e72 100644
--- a/src/mesa/drivers/dri/r300/r300_context.c
+++ b/src/mesa/drivers/dri/r300/r300_context.c
@@ -156,7 +156,7 @@ GLboolean r300CreateContext(const __GLcontextModes * glVisual,
assert(screen);
/* Allocate the R300 context */
- r300 = (r300ContextPtr) CALLOC(sizeof(*r300));
+ r300 = (r300ContextPtr)CALLOC(sizeof(*r300));
if (!r300)
return GL_FALSE;
@@ -172,7 +172,7 @@ GLboolean r300CreateContext(const __GLcontextModes * glVisual,
*/
_mesa_init_driver_functions(&functions);
r300InitIoctlFuncs(&functions);
- //r200InitStateFuncs(&functions);
+ r300InitStateFuncs(&functions);
//r200InitTextureFuncs(&functions);
if (!radeonInitContext(&r300->radeon, &functions,
@@ -296,9 +296,7 @@ void r300DestroyContext(__DRIcontextPrivate * driContextPriv)
r300DestroyCmdBuf(r300);
- /* free the Mesa context */
- r300->radeon.glCtx->DriverCtx = NULL;
- _mesa_destroy_context(r300->radeon.glCtx);
+ radeonCleanupContext(&r300->radeon);
/* free the option cache */
driDestroyOptionCache(&r300->radeon.optionCache);