summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-05-29 09:14:08 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-05-29 12:29:03 -0400
commit16e6cb7c7f7efc92db174b496a98c5fad9594343 (patch)
tree31c05e93f7c1d4567144ba40c7b18910378c620b
parent738241c0bd162a26429b98437247ec42159bb0d9 (diff)
gl_generic: handle image orientation setting when texture has not been created
Summary: this occurs when orientation is set during image construction @fix Reviewers: segfaultxavi, cedric Reviewed By: cedric Subscribers: cedric, #reviewers, #committers Tags: #efl_rendering Differential Revision: https://phab.enlightenment.org/D8916
-rw-r--r--src/modules/evas/engines/gl_generic/evas_engine.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/modules/evas/engines/gl_generic/evas_engine.c b/src/modules/evas/engines/gl_generic/evas_engine.c
index 00989e8e17..e1df2d7031 100644
--- a/src/modules/evas/engines/gl_generic/evas_engine.c
+++ b/src/modules/evas/engines/gl_generic/evas_engine.c
@@ -1154,9 +1154,12 @@ eng_image_orient_set(void *engine, void *image, Evas_Image_Orient orient)
1154 im_new->cached = EINA_FALSE; 1154 im_new->cached = EINA_FALSE;
1155 1155
1156 im_new->orient = orient; 1156 im_new->orient = orient;
1157 im_new->tex = im->tex; 1157 if (im->tex)
1158 im_new->tex->references++; 1158 {
1159 im_new->tex->pt->references++; 1159 im_new->tex = im->tex;
1160 im_new->tex->references++;
1161 im_new->tex->pt->references++;
1162 }
1160 1163
1161 evas_gl_common_image_free(im); 1164 evas_gl_common_image_free(im);
1162 return im_new; 1165 return im_new;