diff options
author | Tilman Sauerbeck <tilman@freedesktop.org> | 2006-06-29 18:36:51 +0000 |
---|---|---|
committer | Tilman Sauerbeck <tilman@freedesktop.org> | 2006-06-29 18:36:51 +0000 |
commit | f7f5b2c41516b11204ff2f253a822b3ac35dcbe0 (patch) | |
tree | 7330e5c3ca040bf8e9b3b37d5ea7957bc6413f0f /src/mesa/drivers/dri/r300/radeon_context.c | |
parent | ff3a5b1842bf26783a487674c5ff4cb40f405f25 (diff) |
destroy left-over VBOs on shutdown
Diffstat (limited to 'src/mesa/drivers/dri/r300/radeon_context.c')
-rw-r--r-- | src/mesa/drivers/dri/r300/radeon_context.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/radeon_context.c b/src/mesa/drivers/dri/r300/radeon_context.c index 4172fbcf83..5de16104f0 100644 --- a/src/mesa/drivers/dri/r300/radeon_context.c +++ b/src/mesa/drivers/dri/r300/radeon_context.c @@ -202,9 +202,13 @@ GLboolean radeonInitContext(radeonContextPtr radeon, void radeonCleanupContext(radeonContextPtr radeon) { /* free the Mesa context */ - radeon->glCtx->DriverCtx = NULL; _mesa_destroy_context(radeon->glCtx); + /* the above call might result in calls to functions that depend on + * the DriverCtx. + */ + radeon->glCtx->DriverCtx = NULL; + if (radeon->state.scissor.pClipRects) { FREE(radeon->state.scissor.pClipRects); radeon->state.scissor.pClipRects = 0; |