From 0d794e0b3739f40c42459baab6a10d10de861233 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Fri, 27 Feb 2015 13:32:50 +0900 Subject: [PATCH] Evas masking: Skip GL fast path if image has fill options If the image is not "filled", then we can't assume its image source geometry is the same as its texture geometry. Note: Implementing a fast path for non-filled images would require a hell of a lot more work (need to cut the render into a lot more triangles) for little real-life use. --- src/lib/evas/canvas/evas_render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/evas/canvas/evas_render.c b/src/lib/evas/canvas/evas_render.c index c0a9e17..c7facab 100644 --- a/src/lib/evas/canvas/evas_render.c +++ b/src/lib/evas/canvas/evas_render.c @@ -1825,7 +1825,7 @@ evas_render_mask_subrender(Evas_Public_Data *evas, mdata->redraw = EINA_FALSE; if (is_image && !prev_mask && mask->func->engine_data_get && - ENFN->image_scaled_update) + ENFN->image_scaled_update && evas_object_image_filled_get(mask->object)) { /* Fast path (for GL) that avoids creating a map surface, render the * scaled image in it, when the shaders can just scale on the fly. */ -- 2.7.4