mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-09 03:48:03 +02:00
gl: gl surfaces are only similar when they share the same device
Fixes gl-surface-source test for gl target
This commit is contained in:
parent
435329a70f
commit
a9d821b7a0
1 changed files with 1 additions and 1 deletions
|
|
@ -891,7 +891,7 @@ _cairo_gl_surface_clone_similar (void *abstract_surface,
|
|||
{
|
||||
cairo_gl_surface_t *surface = abstract_surface;
|
||||
|
||||
if (src->backend == surface->base.backend) {
|
||||
if (src->device == surface->base.device) {
|
||||
*clone_offset_x = 0;
|
||||
*clone_offset_y = 0;
|
||||
*clone_out = cairo_surface_reference (src);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue