[cairo-commit] src/cairo-gl-surface.c

Benjamin Otte company at kemper.freedesktop.org
Fri May 14 12:07:33 PDT 2010


 src/cairo-gl-surface.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a9d821b7a0f582b3d1b0175adee3350c81061a94
Author: Benjamin Otte <otte at redhat.com>
Date:   Fri May 14 21:06:18 2010 +0200

    gl: gl surfaces are only similar when they share the same device
    
    Fixes gl-surface-source test for gl target

diff --git a/src/cairo-gl-surface.c b/src/cairo-gl-surface.c
index 09932e1..9b17a53 100644
--- a/src/cairo-gl-surface.c
+++ b/src/cairo-gl-surface.c
@@ -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);


More information about the cairo-commit mailing list