Reset Render_Engine onebuf if it was set previously.
authorChristopher Michael <cp.michael@samsung.com>
Thu, 24 Jan 2013 09:21:27 +0000 (09:21 +0000)
committerChristopher Michael <cpmichael1@comcast.net>
Thu, 24 Jan 2013 09:21:27 +0000 (09:21 +0000)
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83286

src/modules/evas/engines/wayland_shm/evas_engine.c

index 10b33d0..19b6251 100644 (file)
@@ -238,6 +238,10 @@ eng_setup(Evas *eo_evas, void *einfo)
 
    else
      {
+        int ponebuf = 0;
+
+        if ((re) && (re->ob)) ponebuf = re->ob->onebuf;
+
         /* we have an existing render engine */
         if (re->ob) re->outbuf_free(re->ob);
 
@@ -256,6 +260,8 @@ eng_setup(Evas *eo_evas, void *einfo)
              re->outbuf_flush = evas_swapbuf_flush;
              re->outbuf_idle_flush = evas_swapbuf_idle_flush;
           }
+
+        if ((re) && (re->ob)) re->ob->onebuf = ponebuf;
      }
 
    /* reassign render engine to output */