path: root/src/modules/evas/engines/gl_generic/evas_engine.c
diff options
authorMike Blumenkrantz <>2019-06-03 08:56:11 -0400
committerMike Blumenkrantz <>2019-06-03 08:56:11 -0400
commit012ca4637777d6d2b68f4c6be0bd2236058112c4 (patch)
tree6c83f0aeca928f7958dacbffa9fa5a2103977543 /src/modules/evas/engines/gl_generic/evas_engine.c
parentbed3fa59047ebb946e92878b415cdb5ecb091e64 (diff)
gl_generic: directly copy existing image when changing orientation
Summary: in gl engines, orientation is applied during the draw. this is different from sw engines where the orientation is directly applied to the internal pixel data which results in a state change of the object internals. this preserves image cache state and allows the image to be loaded normally instead of displaying a black rectangle if orientation is set prior to a texture being created @fix Depends on D8916 Reviewers: Hermet, cedric Reviewed By: Hermet, cedric Subscribers: Hermet, cedric, #reviewers, #committers Tags: #efl_rendering Differential Revision:
Diffstat (limited to 'src/modules/evas/engines/gl_generic/evas_engine.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/evas/engines/gl_generic/evas_engine.c b/src/modules/evas/engines/gl_generic/evas_engine.c
index e1df2d7031..2840f51a28 100644
--- a/src/modules/evas/engines/gl_generic/evas_engine.c
+++ b/src/modules/evas/engines/gl_generic/evas_engine.c
@@ -1139,7 +1139,7 @@ eng_image_orient_set(void *engine, void *image, Evas_Image_Orient orient)
1139 1139
1140 evas_gl_common_image_update(im->gc, im); 1140 evas_gl_common_image_update(im->gc, im);
1141 1141
1142 im_new = evas_gl_common_image_new(im->gc, im->w, im->h, im->alpha, im->; 1142 im_new = evas_gl_common_image_new_from_rgbaimage(im->gc, im->im, &im->load_opts, NULL);
1143 if (!im_new) return im; 1143 if (!im_new) return im;
1144 1144
1145 im_new->load_opts = im->load_opts; 1145 im_new->load_opts = im->load_opts;