[cairo] [patch] gl: flush drawing before gradient is destroyed

Henry (Yu) Song - SISA hsong at sisa.samsung.com
Mon Nov 26 11:02:16 PST 2012


>From 2bca0ff7652925ae47ac76a4c1a1d04739ae3a4c Mon Sep 17 00:00:00 2001
From: Henry Song <henry.song at samsung.com>
Date: Mon, 26 Nov 2012 10:58:15 -0800
Subject: [PATCH] random remove gradient can possibly remove a gradient that
 has not been flushed.  Force previous drawing to flush when
 a gradient is destroyed

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

diff --git a/src/cairo-gl-gradient.c b/src/cairo-gl-gradient.c
index 1c1f972..3e4f499 100644
--- a/src/cairo-gl-gradient.c
+++ b/src/cairo-gl-gradient.c
@@ -328,6 +328,7 @@ _cairo_gl_gradient_destroy (cairo_gl_gradient_t *gradient)
     return;

     if (_cairo_gl_context_acquire (gradient->device, &ctx) == CAIRO_STATUS_SUCCESS) {
+        _cairo_gl_composite_flush (ctx);
         glDeleteTextures (1, &gradient->tex);
         ignore = _cairo_gl_context_release (ctx, CAIRO_STATUS_SUCCESS);
     }
--
1.7.10.4

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20121126/9abaaf56/attachment.html>


More information about the cairo mailing list