From 853b616cedc715d11f0cf533b368f223e388cca9 Mon Sep 17 00:00:00 2001 From: caro Date: Sat, 21 Feb 2009 08:18:53 +0000 Subject: [PATCH] make gl engine able to use cutouts - in some cases its faster, some slower. it's a mixed bag. not sure what to make of it. it's #defined to be disabled atm. (synchronize with gl_x11 code) git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@39116 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/modules/engines/gl_glew/evas_engine.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/modules/engines/gl_glew/evas_engine.c b/src/modules/engines/gl_glew/evas_engine.c index 2f916c2..bfa269b 100644 --- a/src/modules/engines/gl_glew/evas_engine.c +++ b/src/modules/engines/gl_glew/evas_engine.c @@ -288,7 +288,10 @@ eng_context_cutout_add(void *data, void *context, int x, int y, int w, int h) Render_Engine *re; re = (Render_Engine *)data; - /* not used in gl engine */ +#ifndef EVAS_GL_COMMON_NOCUTOUTS + re->window->gl_context->dc = context; + evas_common_draw_context_add_cutout(context, x, y, w, h); +#endif } static void @@ -297,7 +300,10 @@ eng_context_cutout_clear(void *data, void *context) Render_Engine *re; re = (Render_Engine *)data; - /* not used in gl engine */ +#ifndef EVAS_GL_COMMON_NOCUTOUTS + re->window->gl_context->dc = context; + evas_common_draw_context_clear_cutouts(context); +#endif } static void -- 2.7.4