summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/gamma/gamma_tex.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/drivers/dri/gamma/gamma_tex.c')
-rw-r--r--src/mesa/drivers/dri/gamma/gamma_tex.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/gamma/gamma_tex.c b/src/mesa/drivers/dri/gamma/gamma_tex.c
index 22ca144582..7235984822 100644
--- a/src/mesa/drivers/dri/gamma/gamma_tex.c
+++ b/src/mesa/drivers/dri/gamma/gamma_tex.c
@@ -366,6 +366,8 @@ static void gammaDeleteTexture( GLcontext *ctx, struct gl_texture_object *tObj )
gammaDestroyTexObj( gmesa, t );
tObj->DriverData = 0;
}
+ /* Free mipmap images and the texture object itself */
+ _mesa_delete_texture_object(ctx, tObj);
}
static GLboolean gammaIsTextureResident( GLcontext *ctx,