From 001dc022fc8c463ff20030e2a54934c93d50c969 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Mon, 23 Feb 2004 06:35:22 +0000 Subject: [PATCH] delete the textures --- src/mesa/drivers/dri/mach64/mach64_tex.c | 5 +++++ 1 file changed, 5 insertions(+) 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); + } } -- 2.30.2