hermet pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=3ca52b7a1a13b4ed8f1038d8e55717c97b635d59
commit 3ca52b7a1a13b4ed8f1038d8e55717c97b635d59 Author: Ali <ali198...@gmail.com> Date: Fri Apr 24 20:55:12 2020 +0900 evas_gl_context: reduce conditions for image orientation check Reviewers: woohyun, eunue, kimcinoo, Hermet Reviewed By: Hermet Subscribers: kimcinoo, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11755 --- src/modules/evas/engines/gl_common/evas_gl_context.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 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 da361679bc..bf88cbdaf0 100644 --- a/src/modules/evas/engines/gl_common/evas_gl_context.c +++ b/src/modules/evas/engines/gl_common/evas_gl_context.c @@ -2292,14 +2292,14 @@ evas_gl_common_context_image_push(Evas_Engine_GL_Context *gc, sy = tex->im->h - sh - sy; } - if (tex->im && + else if (tex->im && (tex->im->orient == EVAS_IMAGE_ORIENT_180)) { sx = tex->im->w - sw - sx; sy = tex->im->h - sh - sy; } - if (tex->im && + else if (tex->im && (tex->im->orient == EVAS_IMAGE_ORIENT_270)) { double tmp; @@ -2310,19 +2310,19 @@ evas_gl_common_context_image_push(Evas_Engine_GL_Context *gc, sx = tex->im->w - sw - sx; } - if (tex->im && + else if (tex->im && (tex->im->orient == EVAS_IMAGE_FLIP_HORIZONTAL)) { sx = tex->im->w - sw - sx; } - if (tex->im && + else if (tex->im && (tex->im->orient == EVAS_IMAGE_FLIP_VERTICAL)) { sy = tex->im->h - sh - sy; } - if (tex->im && + else if (tex->im && (tex->im->orient == EVAS_IMAGE_FLIP_TRANSVERSE)) { double tmp; @@ -2334,7 +2334,7 @@ evas_gl_common_context_image_push(Evas_Engine_GL_Context *gc, sy = tex->im->h - sh - sy; } - if (tex->im && + else if (tex->im && (tex->im->orient == EVAS_IMAGE_FLIP_TRANSPOSE)) { double tmp; --