From: Eric Anholt Date: Fri, 19 Apr 2013 18:52:36 +0000 (-0700) Subject: radeon: Add missing swrast field initialization. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0de08fb5947676da5502ed7d8ad24021a8081076;p=mesa.git radeon: Add missing swrast field initialization. This is the equivalent of intel's 80513ec8b4c812b9c6249cc5824337a5f04ab34c. Reviewed-by: Kenneth Graunke Reviewed-by: Brian Paul --- 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;