summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-02-27 13:32:50 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-02-27 13:33:51 +0900
commit0d794e0b3739f40c42459baab6a10d10de861233 (patch)
tree98364f2b3f2d6695d1fa0a05f416a9a55a631499
parent0da6278af827f19c7e07ad871e28884bf090ff5a (diff)
downloadefl-0d794e0b3739f40c42459baab6a10d10de861233.tar.gz
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.
-rw-r--r--src/lib/evas/canvas/evas_render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_render.c b/src/lib/evas/canvas/evas_render.c
index c0a9e17e7b..c7facab7ef 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. */