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 8caa1f8..a7d7431 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);
 }