From 99122c0cd2c13d6f096f7cb1ddbcf7c75b712efe Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Mon, 13 Jul 2015 17:02:32 +0900 Subject: [PATCH] glview: pass render_op flag to the child surface Without this, apps can't set a GLView to be in COPY mode. COPY mode allows the glview to "poke holes" in the backbuffer of the window, without the need for other objects below (eg. a transparent rectangle in COPY mode). --- legacy/elementary/src/lib/elm_glview.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/legacy/elementary/src/lib/elm_glview.c b/legacy/elementary/src/lib/elm_glview.c index 8530c5427b..2bc87f1fbc 100644 --- a/legacy/elementary/src/lib/elm_glview.c +++ b/legacy/elementary/src/lib/elm_glview.c @@ -114,6 +114,9 @@ static Eina_Bool _render_cb(void *obj) { ELM_GLVIEW_DATA_GET(obj, sd); + ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, EINA_FALSE); + + evas_object_render_op_set(wd->resize_obj, evas_object_render_op_get(obj)); // Do a make current if (!evas_gl_make_current(sd->evasgl, sd->surface, sd->context))