llvmpipe: Fix transfers after resource change
authorJakob Bornecrantz <wallbraker@gmail.com>
Sun, 11 Apr 2010 23:47:28 +0000 (01:47 +0200)
committerJakob Bornecrantz <wallbraker@gmail.com>
Sun, 11 Apr 2010 23:50:51 +0000 (01:50 +0200)
src/gallium/drivers/llvmpipe/lp_texture.c

index 972c7ae7c307ade52e7be1b00e1a4937a429946b..61210de8901bdb2f0889bb3f683146b80d04ad99 100644 (file)
@@ -357,6 +357,7 @@ llvmpipe_get_transfer(struct pipe_context *pipe,
       struct pipe_transfer *pt = &lpt->base;
       pipe_resource_reference(&pt->resource, resource);
       pt->box = *box;
+      pt->sr = sr;
       pt->stride = lptex->stride[sr.level];
       pt->usage = usage;