diff options
author | Søren Sandmann Pedersen <ssp@redhat.com> | 2010-07-12 15:13:49 -0400 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@redhat.com> | 2010-08-15 22:42:02 -0400 |
commit | 32509aa4da83565a1283375c7043348c63ac3d3a (patch) | |
tree | d894256aa01a00985b9d08e76c6bd8ec8ae35c53 | |
parent | 052c5b819cfcdc5e63adb5b9117db939674ca5c2 (diff) |
Check for read accessors before taking the bilinear fast path
The bilinear fast path accesses pixels directly, so if the image has a
read accessor, then it can't be used.
-rw-r--r-- | pixman/pixman-bits-image.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pixman/pixman-bits-image.c b/pixman/pixman-bits-image.c index 3d78ff0..0225ae5 100644 --- a/pixman/pixman-bits-image.c +++ b/pixman/pixman-bits-image.c @@ -914,6 +914,7 @@ bits_image_property_changed (pixman_image_t *image) bits->common.transform->matrix[2][2] == pixman_fixed_1 && bits->common.transform->matrix[0][0] > 0 && bits->common.transform->matrix[1][0] == 0 && + !bits->read_func && (bits->common.filter == PIXMAN_FILTER_BILINEAR || bits->common.filter == PIXMAN_FILTER_GOOD || bits->common.filter == PIXMAN_FILTER_BEST) && |