Skip to content

Commit

Permalink
gl: gl surfaces are only similar when they share the same device
Browse files Browse the repository at this point in the history
Fixes gl-surface-source test for gl target
  • Loading branch information
Benjamin Otte committed May 14, 2010
1 parent 435329a commit a9d821b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cairo-gl-surface.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a9d821b

Please sign in to comment.