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:
Benjamin Otte 2010-05-14 21:06:18 +02:00
parent 435329a70f
commit a9d821b7a0

View file

@ -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);