zmike pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=012ca4637777d6d2b68f4c6be0bd2236058112c4

commit 012ca4637777d6d2b68f4c6be0bd2236058112c4
Author: Mike Blumenkrantz <zm...@samsung.com>
Date:   Mon Jun 3 08:56:11 2019 -0400

    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: https://phab.enlightenment.org/D8918
---
 src/modules/evas/engines/gl_generic/evas_engine.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)
 
    evas_gl_common_image_update(im->gc, im);
 
-   im_new = evas_gl_common_image_new(im->gc, im->w, im->h, im->alpha, 
im->cs.space);
+   im_new = evas_gl_common_image_new_from_rgbaimage(im->gc, im->im, 
&im->load_opts, NULL);
    if (!im_new) return im;
 
    im_new->load_opts = im->load_opts;

-- 


Reply via email to