devilhorns pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=d7b7f19e5e791d1b0b9304f4c42d550d7b3e7634
commit d7b7f19e5e791d1b0b9304f4c42d550d7b3e7634 Author: Chris Michael <[email protected]> Date: Wed Jul 9 12:56:05 2014 -0400 evas-engine-wayland-shm: Check for depth being INHERIT on reconfigure Software Generic backend can send us OUTBUF_DEPTH_INHERIT during a reconfigure. If we are inheriting the previous depth, let's check that so we don't get needless destrouction/recreation of shm buffers. @fix Signed-off-by: Chris Michael <[email protected]> --- src/modules/evas/engines/wayland_shm/evas_swapbuf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/evas/engines/wayland_shm/evas_swapbuf.c b/src/modules/evas/engines/wayland_shm/evas_swapbuf.c index 835ec52..79101b4 100644 --- a/src/modules/evas/engines/wayland_shm/evas_swapbuf.c +++ b/src/modules/evas/engines/wayland_shm/evas_swapbuf.c @@ -96,6 +96,8 @@ evas_swapbuf_reconfigure(Outbuf *ob, int x, int y, int w, int h, int rotation, O /* check for valid output buffer */ if (!ob) return; + if (depth == OUTBUF_DEPTH_INHERIT) depth = ob->depth; + /* check that something was actually changed */ if ((ob->w == w) && (ob->h == h) && (ob->rotation == rotation) && (ob->depth == depth)) --
