mesa: free the fallback texture object in free_shared_state()
authorBrian Paul <brianp@vmware.com>
Fri, 27 Aug 2010 16:51:47 +0000 (10:51 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 27 Aug 2010 16:51:47 +0000 (10:51 -0600)
src/mesa/main/shared.c

index cbe0045..ea7e503 100644 (file)
@@ -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
     */