summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-08-27 10:51:47 -0600
committerBrian Paul <brianp@vmware.com>2010-08-27 10:51:47 -0600
commitc8e0970667d2b4d92abe22bf099cafee4acb717b (patch)
treeac5508a945cf63360f7e9f51bba4194301f77bc5
parent476adf796b150ca93fcfaf6c6d97a9eedd678561 (diff)
mesa: free the fallback texture object in free_shared_state()
-rw-r--r--src/mesa/main/shared.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/main/shared.c b/src/mesa/main/shared.c
index cbe004518a..ea7e503cf3 100644
--- a/src/mesa/main/shared.c
+++ b/src/mesa/main/shared.c
@@ -288,6 +288,10 @@ free_shared_state(GLcontext *ctx, struct gl_shared_state *shared)
{
GLuint i;
+ /* Free the dummy/fallback texture object */
+ if (shared->FallbackTex)
+ ctx->Driver.DeleteTexture(ctx, shared->FallbackTex);
+
/*
* Free display lists
*/