mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 01:48:07 +02:00
gl: Set the device offset on map-to-image
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
f7daaa8fce
commit
dd73add00c
1 changed files with 2 additions and 0 deletions
|
|
@ -1042,6 +1042,8 @@ _cairo_gl_surface_map_to_image (void *abstract_surface,
|
|||
return _cairo_surface_create_in_error (status);
|
||||
}
|
||||
|
||||
cairo_surface_set_device_offset (&image->base, -extents->x, -extents->y);
|
||||
|
||||
/* This is inefficient, as we'd rather just read the thing without making
|
||||
* it the destination. But then, this is the fallback path, so let's not
|
||||
* fall back instead.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue