summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@redhat.com>2010-07-28 03:17:35 -0400
committerSøren Sandmann Pedersen <ssp@redhat.com>2010-08-15 22:41:01 -0400
commit052c5b819cfcdc5e63adb5b9117db939674ca5c2 (patch)
tree1878c3a5417fbe783ab8a1f1a416208d2054d4da
parent91cb1421770a7d654555069946f9e998999a5813 (diff)
If we bail out of do_composite, make sure to undo any workarounds.
The workaround for an old X bug has to be undone if we bail from do_composite, so we can't just return.
-rw-r--r--pixman/pixman.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pixman/pixman.c b/pixman/pixman.c
index 56c9536..548242b 100644
--- a/pixman/pixman.c
+++ b/pixman/pixman.c
@@ -634,7 +634,7 @@ do_composite (pixman_implementation_t *imp,
&region, src, mask, dest,
src_x, src_y, mask_x, mask_y, dest_x, dest_y, width, height))
{
- return;
+ goto out;
}
extents = pixman_region32_extents (&region);
@@ -651,7 +651,7 @@ do_composite (pixman_implementation_t *imp,
*/
op = optimize_operator (op, src_flags, mask_flags, dest_flags);
if (op == PIXMAN_OP_DST)
- return;
+ goto out;
/* Check cache for fast paths */
cache = PIXMAN_GET_THREAD_LOCAL (fast_path_cache);