summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/gl_common/evas_gl_image.c
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2018-10-01 21:06:36 +0900
committerHermet Park <hermetpark@gmail.com>2018-10-01 21:07:07 +0900
commit431c8cc09046ddb60f10f11d024816c6a1ec517a (patch)
treebc1b8f469828014aaba9631a76e061fc2053fbae /src/modules/evas/engines/gl_common/evas_gl_image.c
parent6f26da1d728120a7bb31782eb989f97402315cba (diff)
evas gl: fix invalid image size.
Summary: When we reset of texture for a valid object, this object cache size become -1 x -1 with null texture. Later, we reset a new texture of the object, Its texture size could be -1 x -1. That brings to incorrect result drawing. Can't see any points of using cache size there. This bug was introduced by 9e01cf2698d5b24f440d696fd57d469cdc5a6b5f @fix Reviewers: #committers, raster Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7077
Diffstat (limited to '')
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_image.c8
1 files changed, 2 insertions, 6 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 9ea18e5306..03f4f1f8c2 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_image.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_image.c
@@ -763,12 +763,8 @@ evas_gl_common_image_update(Evas_Engine_GL_Context *gc, Evas_GL_Image *im)
763 if (!im->im) return; 763 if (!im->im) return;
764 764
765 ie = &im->im->cache_entry; 765 ie = &im->im->cache_entry;
766 if (!im->tex) 766 if (!im->tex && ie->preload) return;
767 { 767
768 if (ie->preload) return;
769 im->w = ie->w;
770 im->h = ie->h;
771 }
772 evas_gl_common_image_alloc_ensure(im); 768 evas_gl_common_image_alloc_ensure(im);
773 // alloc ensure can change im->im, so only get the local variable later. 769 // alloc ensure can change im->im, so only get the local variable later.
774 ie = &im->im->cache_entry; 770 ie = &im->im->cache_entry;