From c8e0970667d2b4d92abe22bf099cafee4acb717b Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 27 Aug 2010 10:51:47 -0600 Subject: mesa: free the fallback texture object in free_shared_state() --- src/mesa/main/shared.c | 4 ++++ 1 file changed, 4 insertions(+) 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 */ -- cgit v1.2.3