sna: Correct offset for moving drawable regions to the CPU
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
65164d90b7
commit
4a132ddbf0
|
|
@ -465,7 +465,8 @@ sna_drawable_move_to_cpu(DrawablePtr drawable, unsigned flags)
|
|||
RegionRec region;
|
||||
|
||||
pixman_region_init_rect(®ion,
|
||||
0, 0, drawable->width, drawable->height);
|
||||
drawable->x, drawable->y,
|
||||
drawable->width, drawable->height);
|
||||
return sna_drawable_move_region_to_cpu(drawable, ®ion, flags);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue