summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorShinwoo Kim <cinoo.kim@samsung.com>2020-01-31 18:31:08 +0900
committerHermet Park <hermetpark@gmail.com>2020-01-31 18:31:31 +0900
commit1dc6ccfba0ee33b8b09d66d139d768f0688c6ee1 (patch)
tree587930d854a7cea0a9acf6628b8906d5e0dba548 /src/modules
parent33bf1036e900cde4cbaf4a144196107357d6a9ad (diff)
Efl.Canvas.Group: make mask filter work on GL engine
Summary: The _gl_filter_mask defines value of gc->dc->clip.mask, and make_color but those are not used at all, because the evas_gl_common_Filter_blend_push calls evas_gl_common_context_image_push which doesn't care of those values. So this patch is using evas_gl_common_image_draw to use mask and mask_color. Test Plan: [Filter Program] efl_gfx_filter_program_set(text, "buffer:a(alpha); buffer:fat(alpha); buffer:rgbfat(rgba); curve (0:255-255:0, dst = a); blend (a, color = #00ca00ff); grow (1, dst = fat); blur (3, src = fat, color=#0000b9ff, ox = -2, oy = -2, dst = rgbfat); mask (a, src = rgbfat);padding_set(t=5);", "name"); [Before] {F3835430} [After] {F3835431} Reviewers: Hermet, jsuya Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11139
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/evas/engines/gl_generic/filters/gl_filter_mask.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/evas/engines/gl_generic/filters/gl_filter_mask.c b/src/modules/evas/engines/gl_generic/filters/gl_filter_mask.c
index 755dedb04a..36aaa39d78 100644
--- a/src/modules/evas/engines/gl_generic/filters/gl_filter_mask.c
+++ b/src/modules/evas/engines/gl_generic/filters/gl_filter_mask.c
@@ -50,8 +50,8 @@ _gl_filter_mask(Render_Engine_GL_Generic *re, Evas_Filter_Command *cmd)
50 gc->dc->clip.mask_x = x; 50 gc->dc->clip.mask_x = x;
51 gc->dc->clip.mask_y = y; 51 gc->dc->clip.mask_y = y;
52 52
53 evas_gl_common_filter_blend_push(gc, image->tex, x, y, sw, sh, x, y, sw, sh, 53 evas_gl_common_image_draw(gc, image, x, y, sw, sh,
54 cmd->draw.alphaonly); 54 x, y, sw, sh, EINA_TRUE);
55 } 55 }
56 56
57 evas_gl_common_image_free(use_mask); 57 evas_gl_common_image_free(use_mask);