summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/gl_common/evas_gl_context.c
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2018-08-10 12:06:42 -0400
committerMike Blumenkrantz <zmike@samsung.com>2018-08-10 12:06:42 -0400
commit6e88cc5942954a1f6ceb63e64254ca9ac940500b (patch)
treeb0cc9126fa634a268751e0dc439e965645e9ffac /src/modules/evas/engines/gl_common/evas_gl_context.c
parent4e07f505c3c3fa0b64b07c7f6d58ff06721fc5bb (diff)
evas gl_common: code refactoring.
Summary: use boolean instead int, no logic changes. Reviewers: #committers, zmike Reviewed By: #committers, zmike Subscribers: cedric, #reviewers, #committers, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6807
Diffstat (limited to '')
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_context.c11
1 files changed, 6 insertions, 5 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 b010057c2a..9a384d24de 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_context.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_context.c
@@ -2944,7 +2944,6 @@ evas_gl_common_context_image_map_push(Evas_Engine_GL_Context *gc,
2944 const int points[6] = { 0, 1, 2, 0, 2, 3 }; 2944 const int points[6] = { 0, 1, 2, 0, 2, 3 };
2945 int x = 0, y = 0, w = 0, h = 0, px = 0, py = 0; 2945 int x = 0, y = 0, w = 0, h = 0, px = 0, py = 0;
2946 GLfloat tx[4], ty[4], t2x[4], t2y[4]; 2946 GLfloat tx[4], ty[4], t2x[4], t2y[4];
2947 Eina_Bool blend = EINA_FALSE;
2948 DATA32 cmul; 2947 DATA32 cmul;
2949 Shader_Sampling masksam = SHD_SAM11; 2948 Shader_Sampling masksam = SHD_SAM11;
2950 Evas_GL_Program *prog; 2949 Evas_GL_Program *prog;
@@ -2953,23 +2952,25 @@ evas_gl_common_context_image_map_push(Evas_Engine_GL_Context *gc,
2953 Eina_Bool use_texa = EINA_FALSE; 2952 Eina_Bool use_texa = EINA_FALSE;
2954 Shader_Type type; 2953 Shader_Type type;
2955 int pn = 0, i; 2954 int pn = 0, i;
2956 int flat = 0, nomul = 0, yinvert = 0; 2955 int nomul = 0, yinvert = 0;
2956 Eina_Bool flat = EINA_FALSE;
2957 Eina_Bool blend = EINA_FALSE;
2957 2958
2958 if (!(gc->dc->render_op == EVAS_RENDER_COPY) && 2959 if (!(gc->dc->render_op == EVAS_RENDER_COPY) &&
2959 ((a < 255) || (tex->alpha) || (!!mtex))) blend = EINA_TRUE; 2960 ((a < 255) || (tex->alpha) || (!!mtex))) blend = EINA_TRUE;
2960 2961
2961 if ((A_VAL(&(p[0].col)) < 0xff) || (A_VAL(&(p[1].col)) < 0xff) || 2962 if ((A_VAL(&(p[0].col)) < 0xff) || (A_VAL(&(p[1].col)) < 0xff) ||
2962 (A_VAL(&(p[2].col)) < 0xff) || (A_VAL(&(p[3].col)) < 0xff)) 2963 (A_VAL(&(p[2].col)) < 0xff) || (A_VAL(&(p[3].col)) < 0xff))
2963 blend = 1; 2964 blend = EINA_TRUE;
2964 2965
2965 if ((p[0].z == p[1].z) && (p[1].z == p[2].z) && (p[2].z == p[3].z)) 2966 if ((p[0].z == p[1].z) && (p[1].z == p[2].z) && (p[2].z == p[3].z))
2966 flat = 1; 2967 flat = EINA_TRUE;
2967 2968
2968 if (!clip) cx = cy = cw = ch = 0; 2969 if (!clip) cx = cy = cw = ch = 0;
2969 2970
2970 if (!flat) 2971 if (!flat)
2971 { 2972 {
2972 if (p[0].foc <= 0) flat = 1; 2973 if (p[0].foc <= 0) flat = EINA_TRUE;
2973 } 2974 }
2974 2975
2975 switch (cspace) 2976 switch (cspace)