Only advance the Z coordinate for non-affine transformations
authorSøren Sandmann Pedersen <sandmann@redhat.com>
Tue, 2 Jun 2009 07:27:46 +0000 (03:27 -0400)
committerSøren Sandmann Pedersen <sandmann@redhat.com>
Tue, 2 Jun 2009 20:54:10 +0000 (16:54 -0400)
pixman/pixman-bits-image.c

index 548fc13..e9f12d0 100644 (file)
@@ -602,13 +602,14 @@ bits_image_fetch_transformed (bits_image_t * pict, int x, int y, int width,
                    coords[1] = 0x8000000;
                else
                    coords[1] = div;
+
+               v.vector[2] += unit.vector[2];
            }
 
            coords += 2;
 
            v.vector[0] += unit.vector[0];
            v.vector[1] += unit.vector[1];
-           v.vector[2] += unit.vector[2];
        }
 
        bits_image_fetch_filtered (pict, tmp_buffer, n_pixels);