cedric pushed a commit to branch efl-1.11. http://git.enlightenment.org/core/efl.git/commit/?id=a59f5f4b277b17acb502c83168793541a2b28291
commit a59f5f4b277b17acb502c83168793541a2b28291 Author: Gwanglim Lee <[email protected]> Date: Thu Aug 21 11:01:48 2014 +0200 evas: Evas_Wayland_Egl - change size of common gl context after egl make current according to current Outbuf's size Summary: This fixes broken rendering of the main surface when new surface is created. Rendering on main surface can be broken due to invalid size of common gl context. Since common gl context is shared between surfaces, if new surface has been changed size of common gl context, then rendering on main surface can be broken. In order to fix problem, engine has to change size of common gl context after egl make current according to size of current Outbuf. @fix Test Plan: run elementary_test with wayland_egl engine under wayland and click any button to create new surface. watch the main surface of elementary_test. Reviewers: devilhorns, raster, stefan_schmidt, cedric Reviewed By: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1346 Signed-off-by: Cedric BAIL <[email protected]> --- src/modules/evas/engines/wayland_egl/evas_wl_main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules/evas/engines/wayland_egl/evas_wl_main.c b/src/modules/evas/engines/wayland_egl/evas_wl_main.c index f64dabc..89eb643 100644 --- a/src/modules/evas/engines/wayland_egl/evas_wl_main.c +++ b/src/modules/evas/engines/wayland_egl/evas_wl_main.c @@ -257,7 +257,11 @@ eng_window_use(Outbuf *gw) } } - if (gw) glsym_evas_gl_common_context_use(gw->gl_context); + if (gw) + { + glsym_evas_gl_common_context_use(gw->gl_context); + glsym_evas_gl_common_context_resize(gw->gl_context, gw->w, gw->h, gw->rot); + } } void --
