summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/gl_common/evas_gl_texture.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-01-08 19:48:26 -0500
committerChris Michael <cp.michael@samsung.com>2017-01-08 19:48:26 -0500
commitf026055630da0265630163b82e68048fb6c03fed (patch)
treea3f1c4aac20f8e37a77a794e106d100c64ae4b3f /src/modules/evas/engines/gl_common/evas_gl_texture.c
parentdfd0e5d66561b470fdcd8efa348469b26997730d (diff)
evas-gl-common: Fix incorrect expression
Coverity reports this as in incorrect expression because it was checking cache_entry width <= 0 twice. Fairly safe to assume that the proper check should be width || height. Fix CID1368336 Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to '')
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_texture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/evas/engines/gl_common/evas_gl_texture.c b/src/modules/evas/engines/gl_common/evas_gl_texture.c
index c6f045abd7..8400593153 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_texture.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_texture.c
@@ -1174,7 +1174,7 @@ evas_gl_common_texture_upload(Evas_GL_Texture *tex, RGBA_Image *im, unsigned int
1174 GLuint fmt; 1174 GLuint fmt;
1175 1175
1176 if ((((int)im->cache_entry.w) <= 0) || 1176 if ((((int)im->cache_entry.w) <= 0) ||
1177 (((int)im->cache_entry.w) <= 0)) return; 1177 (((int)im->cache_entry.h) <= 0)) return;
1178 fmt = tex->pt->format; 1178 fmt = tex->pt->format;
1179 glBindTexture(GL_TEXTURE_2D, tex->pt->texture); 1179 glBindTexture(GL_TEXTURE_2D, tex->pt->texture);
1180 if (tex->gc->shared->info.unpack_row_length) 1180 if (tex->gc->shared->info.unpack_row_length)