diff options
author | Tilman Sauerbeck <tilman@freedesktop.org> | 2006-06-11 09:12:27 +0000 |
---|---|---|
committer | Tilman Sauerbeck <tilman@freedesktop.org> | 2006-06-11 09:12:27 +0000 |
commit | 51eb359ea96a048f942b5e72c5634d36d9859d97 (patch) | |
tree | d6d4ba1584aae710c3bf6aa84d929dfa134cb556 /src/mesa/drivers/dri/r300/r300_context.c | |
parent | 5b90cf2f2f3dcda0d674c01859847149b4054608 (diff) |
destroy the memory manager along with the context
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_context.c')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_context.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_context.c b/src/mesa/drivers/dri/r300/r300_context.c index ab582525ab..d7f027dcb8 100644 --- a/src/mesa/drivers/dri/r300/r300_context.c +++ b/src/mesa/drivers/dri/r300/r300_context.c @@ -486,6 +486,13 @@ void r300DestroyContext(__DRIcontextPrivate * driContextPriv) radeonCleanupContext(&r300->radeon); +#ifdef USER_BUFFERS + /* the memory manager might be accessed when Mesa frees the shared + * state, so don't destroy it earlier + */ + radeon_mm_destroy(r300); +#endif + /* free the option cache */ driDestroyOptionCache(&r300->radeon.optionCache); |