i915g: Don't forget x/y coords in transfers
authorJakob Bornecrantz <jakob@aurora.walkyrie.se>
Sat, 8 Aug 2009 01:20:24 +0000 (03:20 +0200)
committerJakob Bornecrantz <jakob@aurora.walkyrie.se>
Sat, 8 Aug 2009 01:20:24 +0000 (03:20 +0200)
Fixes demos/ray.

src/gallium/drivers/i915simple/i915_screen.c

index f4aa8e60d81bfc48f1c2c0d894cae8412a02f861..a3de38d5860b87e60865a1dbeec486c46fb624cd 100644 (file)
@@ -232,6 +232,8 @@ i915_get_tex_transfer(struct pipe_screen *screen,
    if (trans) {
       pipe_texture_reference(&trans->base.texture, texture);
       trans->base.format = trans->base.format;
+      trans->base.x = x;
+      trans->base.y = y;
       trans->base.width = w;
       trans->base.height = h;
       trans->base.block = texture->block;