summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/gl_common/evas_gl_image.c
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2018-08-29 13:57:45 +0900
committerHermet Park <hermetpark@gmail.com>2018-08-29 13:57:45 +0900
commit78fb9cf124e80d85e443a6bc5afe2819ee120e1a (patch)
tree8564e00954e2aa6d7cd60a6da95bfd37e55e21f8 /src/modules/evas/engines/gl_common/evas_gl_image.c
parent43fcca4acdb1189fb7b4022b3be76a6f9d7d0363 (diff)
evas gl: remove redundant code.
Reviewers: devilhorns, #committers, raster Subscribers: cedric, #reviewers, #committers, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6901
Diffstat (limited to '')
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_image.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/modules/evas/engines/gl_common/evas_gl_image.c b/src/modules/evas/engines/gl_common/evas_gl_image.c
index d93d296e67..b908d044b4 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_image.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_image.c
@@ -941,8 +941,7 @@ evas_gl_common_image_update(Evas_Engine_GL_Context *gc, Evas_GL_Image *im)
941 } 941 }
942 } 942 }
943 im->dirty = 0; 943 im->dirty = 0;
944 if (!im->tex) return; 944 break;
945 break;
946 case EVAS_COLORSPACE_ETC1_ALPHA: 945 case EVAS_COLORSPACE_ETC1_ALPHA:
947 if ((im->tex) && (im->dirty)) 946 if ((im->tex) && (im->dirty))
948 { 947 {
@@ -957,7 +956,6 @@ evas_gl_common_image_update(Evas_Engine_GL_Context *gc, Evas_GL_Image *im)
957 evas_cache_image_unload_data(ie); 956 evas_cache_image_unload_data(ie);
958 } 957 }
959 im->dirty = 0; 958 im->dirty = 0;
960 if (!im->tex) return;
961 break; 959 break;
962 case EVAS_COLORSPACE_YCBCR422P601_PL: 960 case EVAS_COLORSPACE_YCBCR422P601_PL:
963 case EVAS_COLORSPACE_YCBCR422P709_PL: 961 case EVAS_COLORSPACE_YCBCR422P709_PL:
@@ -971,7 +969,6 @@ evas_gl_common_image_update(Evas_Engine_GL_Context *gc, Evas_GL_Image *im)
971 im->tex = evas_gl_common_texture_yuv_new(gc, im->cs.data, ie->w, ie->h); 969 im->tex = evas_gl_common_texture_yuv_new(gc, im->cs.data, ie->w, ie->h);
972 im->dirty = 0; 970 im->dirty = 0;
973 } 971 }
974 if (!im->tex) return;
975 break; 972 break;
976 case EVAS_COLORSPACE_YCBCR422601_PL: 973 case EVAS_COLORSPACE_YCBCR422601_PL:
977 if ((im->tex) && (im->dirty)) 974 if ((im->tex) && (im->dirty))
@@ -984,7 +981,6 @@ evas_gl_common_image_update(Evas_Engine_GL_Context *gc, Evas_GL_Image *im)
984 im->tex = evas_gl_common_texture_yuy2_new(gc, im->cs.data, ie->w, ie->h); 981 im->tex = evas_gl_common_texture_yuy2_new(gc, im->cs.data, ie->w, ie->h);
985 im->dirty = 0; 982 im->dirty = 0;
986 } 983 }
987 if (!im->tex) return;
988 break; 984 break;
989 case EVAS_COLORSPACE_YCBCR420NV12601_PL: 985 case EVAS_COLORSPACE_YCBCR420NV12601_PL:
990 if ((im->tex) && (im->dirty)) 986 if ((im->tex) && (im->dirty))
@@ -997,7 +993,6 @@ evas_gl_common_image_update(Evas_Engine_GL_Context *gc, Evas_GL_Image *im)
997 im->tex = evas_gl_common_texture_nv12_new(gc, im->cs.data, ie->w, ie->h); 993 im->tex = evas_gl_common_texture_nv12_new(gc, im->cs.data, ie->w, ie->h);
998 im->dirty = 0; 994 im->dirty = 0;
999 } 995 }
1000 if (!im->tex) return;
1001 break; 996 break;
1002 case EVAS_COLORSPACE_YCBCR420TM12601_PL: 997 case EVAS_COLORSPACE_YCBCR420TM12601_PL:
1003 if ((im->tex) && (im->dirty)) 998 if ((im->tex) && (im->dirty))
@@ -1010,7 +1005,6 @@ evas_gl_common_image_update(Evas_Engine_GL_Context *gc, Evas_GL_Image *im)
1010 im->tex = evas_gl_common_texture_nv12tiled_new(gc, im->cs.data, ie->w, ie->h); 1005 im->tex = evas_gl_common_texture_nv12tiled_new(gc, im->cs.data, ie->w, ie->h);
1011 im->dirty = 0; 1006 im->dirty = 0;
1012 } 1007 }
1013 if (!im->tex) return;
1014 break; 1008 break;
1015 default: 1009 default:
1016 ERR("unhandled img format colorspace=%d", im->cs.space); 1010 ERR("unhandled img format colorspace=%d", im->cs.space);