HomePhabricator

evas_gl_generic: fix wrong gl context set

Authored by jypark on Mar 14 2019, 1:53 AM.

Description

evas_gl_generic: fix wrong gl context set

example:
...
im=evas_object_image_add()
evas_gl_surface_create
...
evas_object_image_native_surface_set(im, xx)-> MAIN CONTEXT
evas_gl_make_current -> CONTEXT A
.....
evas_object_image_size_set(im, x,x) ->WRONG CONTEXT A

evas_object_image_size_set of image have native_surface finally calls
eng_image_size_set function of gl_generic.

eng_image_size_set cannot get the proper context related with
evas_gl_common_image_native_enable.
It ruined gl context and texture of main context has gone wrong.

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D8338

Details

Committed
cedricMar 15 2019, 9:27 AM
Differential Revision
D8338: evas_gl_generic: fix wrong gl context set
Parents
rEFL25797aaca05f: eldbus: Fix dereference after null check
Branches
Unknown
Tags
Unknown