[cairo-commit] gtkcairo/gtkcairo gdkcairo.c,1.8,1.9

David Reveman commit at pdx.freedesktop.org
Sun Nov 14 03:33:38 PST 2004


Committed by: davidr

Update of /cvs/cairo/gtkcairo/gtkcairo
In directory gabe:/tmp/cvs-serv22589/gtkcairo

Modified Files:
	gdkcairo.c 
Log Message:
Fixed GL resizing

Index: gdkcairo.c
===================================================================
RCS file: /cvs/cairo/gtkcairo/gtkcairo/gdkcairo.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- gdkcairo.c	12 Nov 2004 11:47:46 -0000	1.8
+++ gdkcairo.c	14 Nov 2004 11:33:36 -0000	1.9
@@ -274,8 +274,6 @@
 				      GLITZ_DRAWABLE_BUFFER_FRONT_COLOR,
 				      0, 0);
 		
-		glitz_drawable_destroy (drawable);
-		
 		cairo_set_target_glitz (self->cr, self->glitz_surface);
             }
 	    
@@ -314,11 +312,12 @@
 	    drawable = glitz_surface_get_drawable (self->glitz_surface);
 	    dformat = glitz_drawable_get_format (drawable);
 
-	    if (!dformat->doublebuffer) {
-		glitz_surface_flush (self->glitz_surface);
-		glitz_drawable_flush (drawable);
-	    } else
+	    glitz_surface_flush (self->glitz_surface);
+	    
+	    if (dformat->doublebuffer)
 		glitz_drawable_swap_buffers (drawable);
+	    else
+		glitz_drawable_flush (drawable);
         }break;
         #endif
         #ifdef CAIRO_HAS_XLIB_SURFACE




More information about the cairo-commit mailing list