From: raster Date: Wed, 17 Feb 2010 04:48:53 +0000 (+0000) Subject: fix maps with alpha.. sorry about that! X-Git-Tag: submit/trunk/20120815.174732~2908 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d80d2b07cfb3c247af3eab25e32af0a5a0c6e02e;p=profile%2Fivi%2Fevas.git fix maps with alpha.. sorry about that! git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@46235 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/modules/engines/gl_common/evas_gl_context.c b/src/modules/engines/gl_common/evas_gl_context.c index 63ac15c..b022db9 100644 --- a/src/modules/engines/gl_common/evas_gl_context.c +++ b/src/modules/engines/gl_common/evas_gl_context.c @@ -504,8 +504,6 @@ evas_gl_common_context_rectangle_push(Evas_GL_Context *gc, if (a < 255) blend = 1; if (gc->dc->render_op == EVAS_RENDER_COPY) blend = 0; - gc->shader.blend = 1; - if ((gc->shader.cur_tex != 0) || (gc->shader.cur_prog != gc->shared->shader.rect.prog) // || (gc->shader.blend != blend) diff --git a/src/modules/engines/gl_common/evas_gl_rectangle.c b/src/modules/engines/gl_common/evas_gl_rectangle.c index cd3368e..1c009ca 100644 --- a/src/modules/engines/gl_common/evas_gl_rectangle.c +++ b/src/modules/engines/gl_common/evas_gl_rectangle.c @@ -13,7 +13,7 @@ evas_gl_common_rect_draw(Evas_GL_Context *gc, int x, int y, int w, int h) c = gc->dc->clip.use; cx = gc->dc->clip.x; cy = gc->dc->clip.y; cw = gc->dc->clip.w; ch = gc->dc->clip.h; ca = (gc->dc->col.col >> 24) & 0xff; - if (ca <= 0) return; + if ((gc->dc->render_op != EVAS_RENDER_COPY) && (ca <= 0)) return; cr = (gc->dc->col.col >> 16) & 0xff; cg = (gc->dc->col.col >> 8 ) & 0xff; cb = (gc->dc->col.col ) & 0xff;