evas-wayland-shm: If no depth is specified during reconfigure, use existing depth

Summary: This fixes a crash which Could occur if no outbuf depth was
given during a call to reconfigure.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-07-30 13:53:10 -04:00
parent f86e04b14f
commit 37b767994e
1 changed files with 3 additions and 1 deletions

View File

@ -280,7 +280,9 @@ _evas_outbuf_reconfigure(Outbuf *ob, int x, int y, int w, int h, int rot, Outbuf
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (depth == OUTBUF_DEPTH_INHERIT) depth = ob->depth;
if ((depth == OUTBUF_DEPTH_NONE) ||
(depth == OUTBUF_DEPTH_INHERIT))
depth = ob->depth;
if ((ob->w == w) && (ob->h == h) &&
(ob->rotation == rot) && (ob->depth == depth) &&