<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">From 2bca0ff7652925ae47ac76a4c1a1d04739ae3a4c Mon Sep 17 00:00:00 2001<br>
From: Henry Song <henry.song@samsung.com><br>
Date: Mon, 26 Nov 2012 10:58:15 -0800<br>
Subject: [PATCH] random remove gradient can possibly remove a gradient that<br>
has not been flushed. Force previous drawing to flush when<br>
a gradient is destroyed<br>
<br>
---<br>
src/cairo-gl-gradient.c | 1 +<br>
1 file changed, 1 insertion(+)<br>
<br>
diff --git a/src/cairo-gl-gradient.c b/src/cairo-gl-gradient.c<br>
index 1c1f972..3e4f499 100644<br>
--- a/src/cairo-gl-gradient.c<br>
+++ b/src/cairo-gl-gradient.c<br>
@@ -328,6 +328,7 @@ _cairo_gl_gradient_destroy (cairo_gl_gradient_t *gradient)<br>
return;<br>
<br>
if (_cairo_gl_context_acquire (gradient->device, &ctx) == CAIRO_STATUS_SUCCESS) {<br>
+ _cairo_gl_composite_flush (ctx);<br>
glDeleteTextures (1, &gradient->tex);<br>
ignore = _cairo_gl_context_release (ctx, CAIRO_STATUS_SUCCESS);<br>
}<br>
-- <br>
1.7.10.4<br>
<br>
</div>
</body>
</html>