evas: actually put the specific code in the right place.
authorCedric BAIL <c.bail@partner.samsung.com>
Wed, 9 Jul 2014 13:10:08 +0000 (15:10 +0200)
committerCedric BAIL <c.bail@partner.samsung.com>
Wed, 9 Jul 2014 13:17:03 +0000 (15:17 +0200)
src/modules/evas/engines/gl_x11/evas_engine.c
src/modules/evas/engines/gl_x11/evas_x_main.c

index 7c607b5..d1aeedd 100644 (file)
@@ -1183,19 +1183,6 @@ eng_preload_make_current(void *data, void *doit)
 }
 
 static void
-eng_output_redraws_rect_add(void *data, int x, int y, int w, int h)
-{
-   Render_Engine *re;
-
-   re = (Render_Engine *)data;
-   eng_window_use(re->generic.ob);
-   evas_gl_common_context_resize(re->generic.ob->gl_context,
-                                 re->generic.ob->w, re->generic.ob->h,
-                                 re->generic.ob->rot);
-   evas_common_tilebuf_add_redraw(re->generic.tb, x, y, w, h);
-}
-
-static void
 eng_output_dump(void *data)
 {
    Render_Engine *re;
@@ -3346,7 +3333,6 @@ module_open(Evas_Module *em)
    ORD(canvas_alpha_get);
    ORD(output_free);
    ORD(output_dump);
-   ORD(output_redraws_rect_add);
    ORD(rectangle_draw);
    ORD(line_draw);
    ORD(polygon_point_add);
index 28935c8..19e826e 100644 (file)
@@ -1020,6 +1020,10 @@ eng_outbuf_region_first_rect(Outbuf *ob)
    eng_window_use(ob);
    if (!_re_wincheck(ob)) return EINA_TRUE;
 
+   evas_gl_common_context_resize(ob->gl_context,
+                                 ob->w, ob->h,
+                                 ob->rot);
+
    evas_gl_common_context_flush(ob->gl_context);
    evas_gl_common_context_newframe(ob->gl_context);
    if (partial_render_debug == 1)