summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie <airliedfreedesktop.org>2004-02-23 06:35:22 +0000
committerDave Airlie <airliedfreedesktop.org>2004-02-23 06:35:22 +0000
commit001dc022fc8c463ff20030e2a54934c93d50c969 (patch)
tree76830cc25432f48bb6363ed278c7e413092e4259
parent263581bba4d61291c54313648063a30c47106f0b (diff)
delete the textures
-rw-r--r--src/mesa/drivers/dri/mach64/mach64_tex.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/mach64/mach64_tex.c b/src/mesa/drivers/dri/mach64/mach64_tex.c
index 1ac42e330dc..fc55939198c 100644
--- a/src/mesa/drivers/dri/mach64/mach64_tex.c
+++ b/src/mesa/drivers/dri/mach64/mach64_tex.c
@@ -42,6 +42,8 @@
#include "enums.h"
#include "texstore.h"
#include "texformat.h"
+#include "teximage.h"
+#include "texobj.h"
#include "imports.h"
@@ -568,6 +570,9 @@ static void mach64DDDeleteTexture( GLcontext *ctx,
mach64DestroyTexObj( mmesa, t );
tObj->DriverData = NULL;
+ /* Free mipmap images and the texture object itself */
+ _mesa_delete_texture_object(ctx, tObj);
+
}
}