summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_texture.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_texture.c b/src/mesa/drivers/dri/radeon/radeon_texture.c
index 0bd2c245a19..b1bc0fc9dd9 100644
--- a/src/mesa/drivers/dri/radeon/radeon_texture.c
+++ b/src/mesa/drivers/dri/radeon/radeon_texture.c
@@ -120,6 +120,9 @@ radeonAllocTextureImageBuffer(struct gl_context *ctx,
}
assert(!image->base.ImageOffsets);
image->base.ImageOffsets = malloc(slices * sizeof(GLuint));
+
+ _swrast_init_texture_image(timage);
+
teximage_assign_miptree(rmesa, texobj, timage);
return GL_TRUE;