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).
This commit is contained in:
Jean-Philippe Andre 2015-07-13 17:02:32 +09:00
parent a8511b117d
commit 99122c0cd2
1 changed files with 3 additions and 0 deletions

View File

@ -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))