Bug #6044: actually delete the texture object in mgaDeleteTexture
authorTilman Sauerbeck <tilman@freedesktop.org>
Sun, 26 Nov 2006 09:39:21 +0000 (09:39 +0000)
committerTilman Sauerbeck <tilman@freedesktop.org>
Sun, 26 Nov 2006 09:39:21 +0000 (09:39 +0000)
src/mesa/drivers/dri/mga/mgatex.c

index 8caa1f8580f2f801e7924537b5a97835df9b2f3a..a7d74317a5b7a9bd277d4287767df2ea7c414f90 100644 (file)
@@ -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);
 }