Add _mesa_delete_texture_object() call to viaDeleteTexture
authorKeith Whitwell <keith@tungstengraphics.com>
Wed, 15 Dec 2004 13:59:47 +0000 (13:59 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Wed, 15 Dec 2004 13:59:47 +0000 (13:59 +0000)
[Freedesktop BUG 2080]

src/mesa/drivers/dri/unichrome/via_tex.c

index 97a4c8572a6d57d3c4454e47e727b1651936992d..8a2b6b1abc12aa0ec81c38c45398ac05e8bdd2ac 100644 (file)
@@ -263,6 +263,9 @@ static void viaDeleteTexture(GLcontext *ctx, struct gl_texture_object *texObj)
 #ifdef DEBUG    
     if (VIA_DEBUG) fprintf(stderr, "viaDeleteTexture - out\n");    
 #endif
+
+   /* Free mipmap images and the texture object itself */
+   _mesa_delete_texture_object(ctx, texObj);
 }
 
 static GLboolean viaIsTextureResident(GLcontext *ctx,