forked from enlightenment/efl
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:
parent
accdd50f50
commit
d7b7f19e5e
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue