summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/radeon
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2013-04-19 11:57:28 -0700
committerEric Anholt <[email protected]>2013-04-30 10:40:43 -0700
commite7ecc11311d142a8ac919627011372a265224bcd (patch)
treef897e30368cdc02e19cac12bfe5c307b1fd77e19 /src/mesa/drivers/dri/radeon
parent0a484f100615379482eb733d97757d7b24e377ef (diff)
swrast: Reuse _swrast_free_texture_image_buffer from drivers.
Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/radeon')
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_texture.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_texture.c b/src/mesa/drivers/dri/radeon/radeon_texture.c
index a953858d3bb..23942cbb0a0 100644
--- a/src/mesa/drivers/dri/radeon/radeon_texture.c
+++ b/src/mesa/drivers/dri/radeon/radeon_texture.c
@@ -127,20 +127,13 @@ void radeonFreeTextureImageBuffer(struct gl_context *ctx, struct gl_texture_imag
if (image->mt) {
radeon_miptree_unreference(&image->mt);
- } else {
- _swrast_free_texture_image_buffer(ctx, timage);
}
if (image->bo) {
radeon_bo_unref(image->bo);
image->bo = NULL;
}
- if (image->base.Buffer) {
- _mesa_align_free(image->base.Buffer);
- image->base.Buffer = NULL;
- }
- free(image->base.ImageOffsets);
- image->base.ImageOffsets = NULL;
+ _swrast_free_texture_image_buffer(ctx, timage);
}
/**