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-07-13 15:46:21 -0400 |
commit | 9897bb4eeed165b76001dfefd3a89bcb96d38a72 (patch) | |
tree | 917435bb43a57f259bf3040b56970d1778eeb08a | |
parent | ce3d9fca73bb8abe4d5b1023cfdb06ca53b6161c (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 ff59a8f7..95710b4c 100644 --- a/pixman/pixman-bits-image.c +++ b/pixman/pixman-bits-image.c @@ -909,6 +909,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) && |