From 9897bb4eeed165b76001dfefd3a89bcb96d38a72 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=B8ren=20Sandmann=20Pedersen?= Date: Mon, 12 Jul 2010 15:13:49 -0400 Subject: [PATCH] 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. --- pixman/pixman-bits-image.c | 1 + 1 file changed, 1 insertion(+) diff --git a/pixman/pixman-bits-image.c b/pixman/pixman-bits-image.c index ff59a8f..95710b4 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) && -- 2.7.4