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 <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2014-07-09 12:56:05 -04:00
parent accdd50f50
commit d7b7f19e5e
1 changed files with 2 additions and 0 deletions

View File

@ -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))