gl: remove orient mismatch between texture and image 72/253572/2
authorShinwoo Kim <cinoo.kim@samsung.com>
Mon, 25 Jan 2021 11:53:03 +0000 (20:53 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Tue, 16 Feb 2021 03:18:26 +0000 (03:18 +0000)
commitf080a175bd5244c2c228814a24cbb5434558a94d
treeffb65bb7d27fef51f3352670bd0030bac6948ed1
parent7497f9ccd37a691b547f5556e763c4d5559a1e0b
gl: remove orient mismatch between texture and image

With following step, we got abnormal image,
because there is a mismatch between texture and image.

evas_object_image_orient_set(90)
evas_object_image_data_get

evas_object_image_orient_set(180)
evas_object_image_data_get

evas_object_image_orient_set(270)
evas_object_image_data_get

evas_object_image_orient_set(0)
evas_object_image_data_get

The evas_object_image_data_get create rotated image and texture.
The rotated image and texture is used in evas_gl_common_context_image_push.
evas_gl_common_context_image_push has been used 0 orient texture so far.

But following commit made evas_gl_common_context_image_push use
rotated texture

  0abf1ee [evas_gl] change oreint_set() / data_set() / data_get() ...

And for more information,
The following commit increase ref count of rotated texture
So by somehow... rotated texture was used with 0 orient image.

  1b91101 evas: fix usage of the same ressource ...

*tizen_fix

Change-Id: I8429cedd835cdf1dc94931e1c9c4b308d775ac71
src/modules/evas/engines/gl_common/evas_gl_context.c
src/modules/evas/engines/gl_generic/evas_engine.c