Return immediately if the operator is CONJOINT_DST or DISJOINT_DST
authorSøren Sandmann Pedersen <sandmann@redhat.com>
Mon, 13 Jul 2009 09:58:43 +0000 (05:58 -0400)
committerSøren Sandmann Pedersen <sandmann@redhat.com>
Mon, 13 Jul 2009 09:58:43 +0000 (05:58 -0400)
These are noops just like plain DST is.

pixman/pixman.c

index 4c393c5..fed99ee 100644 (file)
@@ -123,7 +123,7 @@ pixman_image_composite (pixman_op_t      op,
      * The output operator should be mathematically equivalent to the source.
      */
     op = pixman_optimize_operator(op, src, mask, dest);
-    if(op == PIXMAN_OP_DST)
+    if(op == PIXMAN_OP_DST || op == PIXMAN_OP_CONJOINT_DST || op == PIXMAN_OP_DISJOINT_DST)
         return;
 
     if (!imp)