radeon: Add missing swrast field initialization.
authorEric Anholt <eric@anholt.net>
Fri, 19 Apr 2013 18:52:36 +0000 (11:52 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 30 Apr 2013 17:40:42 +0000 (10:40 -0700)
This is the equivalent of intel's
80513ec8b4c812b9c6249cc5824337a5f04ab34c.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/drivers/dri/radeon/radeon_texture.c

index 0bd2c245a19f0e9258d63b803d32dff0f3458e72..b1bc0fc9dd90c04db71bcf59ea5cfc4723e151e9 100644 (file)
@@ -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;