From: Brian Paul Date: Fri, 27 Aug 2010 16:51:47 +0000 (-0600) Subject: mesa: free the fallback texture object in free_shared_state() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c8e0970667d2b4d92abe22bf099cafee4acb717b;p=mesa.git mesa: free the fallback texture object in free_shared_state() --- diff --git a/src/mesa/main/shared.c b/src/mesa/main/shared.c index cbe004518a0..ea7e503cf3b 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 */