From 53eebe014e5e3ca0cf6485e4e24da78b43448dd9 Mon Sep 17 00:00:00 2001 From: Gwanglim Lee Date: Thu, 21 Aug 2014 11:01:48 +0200 Subject: [PATCH] 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 --- 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 3c6d29e..a7dfff8 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 -- 2.7.4