evas gl: fix glview by avoiding make current
authorCedric BAIL <cedric@osg.samsung.com>
Fri, 25 Aug 2017 17:54:55 +0000 (10:54 -0700)
committerCedric BAIL <cedric@osg.samsung.com>
Fri, 25 Aug 2017 17:54:55 +0000 (10:54 -0700)
commit7453980ccf2acf755c37846285af01e1301b1f44
treece3b86925321a9aa28d93dd1f6b1929d2a7e0914
parentcce4dcc58e8b9bdda8caa15ed824b0dbc23a3fb1
evas gl: fix glview by avoiding make current

gl_generic_context_find() returns the gl shared context struct but
this is not just a read-only operation. It in turn calls window_use
which may call make_current. This can invalidate the work of evas gl
when the API tried to switch to a specific context.

This fixes evas gl with multiple outputs.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/modules/evas/engines/gl_generic/Evas_Engine_GL_Generic.h
src/modules/evas/engines/gl_generic/evas_engine.c
src/modules/evas/engines/gl_x11/evas_engine.c