summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-07-13 17:02:32 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-07-13 17:02:32 +0900
commit45a562a6505cfb3168d42d8ab69a5201fb44a557 (patch)
tree997edbd245492a0ea64e8228d2559de391193a32
parentdf656bf29d792369cb366fa4c9f52a0b8bea1578 (diff)
downloadelementary-devs/jpeg/evasgl.tar.gz
glview: pass render_op flag to the child surfacedevs/jpeg/evasgl
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).
-rw-r--r--src/lib/elm_glview.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/elm_glview.c b/src/lib/elm_glview.c
index 8530c5427..2bc87f1fb 100644
--- a/src/lib/elm_glview.c
+++ b/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))