From: Keith Whitwell Date: Wed, 15 Dec 2004 13:59:47 +0000 (+0000) Subject: Add _mesa_delete_texture_object() call to viaDeleteTexture X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cc488b03a387aeb2ea25bb7ed22548cbf612fce2;p=mesa.git Add _mesa_delete_texture_object() call to viaDeleteTexture [Freedesktop BUG 2080] --- diff --git a/src/mesa/drivers/dri/unichrome/via_tex.c b/src/mesa/drivers/dri/unichrome/via_tex.c index 97a4c8572a6..8a2b6b1abc1 100644 --- a/src/mesa/drivers/dri/unichrome/via_tex.c +++ b/src/mesa/drivers/dri/unichrome/via_tex.c @@ -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,