hermet pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=f556cd1328c502d1778e883b095a5a184892e538

commit f556cd1328c502d1778e883b095a5a184892e538
Author: ChunEon Park <[email protected]>
Date:   Sat Mar 22 20:28:45 2014 +0900

    evas/gl - don't set blend function in RENDER COPY mode.
    
    it's enough that just disabling the blend mode.
---
 src/modules/evas/engines/gl_common/evas_gl_context.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/modules/evas/engines/gl_common/evas_gl_context.c 
b/src/modules/evas/engines/gl_common/evas_gl_context.c
index 79e33fe..182207b 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_context.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_context.c
@@ -2771,8 +2771,9 @@ shader_array_flush(Evas_Engine_GL_Context *gc)
                   break;
                case EVAS_RENDER_COPY: /**< d = s */
                   gc->pipe[i].shader.blend = 0;
-                  glBlendFunc(GL_ONE, GL_ONE);
-                  GLERR(__FUNCTION__, __FILE__, __LINE__, "");
+                  // just disable blend mode. no need to set blend func
+                  //glBlendFunc(GL_ONE, GL_ONE);
+                  //GLERR(__FUNCTION__, __FILE__, __LINE__, "");
                   break;
                   // FIXME: fix blend funcs below!
                case EVAS_RENDER_BLEND_REL: /**< d = d*(1 - sa) + s*da */

-- 


Reply via email to