From: Tilman Sauerbeck Date: Sun, 26 Nov 2006 09:39:21 +0000 (+0000) Subject: Bug #6044: actually delete the texture object in mgaDeleteTexture X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=85365e6aa4608ea684ff770def7f0f7b354173df;p=mesa.git Bug #6044: actually delete the texture object in mgaDeleteTexture --- diff --git a/src/mesa/drivers/dri/mga/mgatex.c b/src/mesa/drivers/dri/mga/mgatex.c index 8caa1f8580f..a7d74317a5b 100644 --- a/src/mesa/drivers/dri/mga/mgatex.c +++ b/src/mesa/drivers/dri/mga/mgatex.c @@ -502,6 +502,9 @@ mgaDeleteTexture( GLcontext *ctx, struct gl_texture_object *tObj ) driDestroyTextureObject( t ); } + + /* Free mipmap images and the texture object itself */ + _mesa_delete_texture_object(ctx, tObj); }