forked from enlightenment/efl
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:
parent
f86e04b14f
commit
37b767994e
|
@ -280,7 +280,9 @@ _evas_outbuf_reconfigure(Outbuf *ob, int x, int y, int w, int h, int rot, Outbuf
|
||||||
{
|
{
|
||||||
LOGFN(__FILE__, __LINE__, __FUNCTION__);
|
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) &&
|
if ((ob->w == w) && (ob->h == h) &&
|
||||||
(ob->rotation == rot) && (ob->depth == depth) &&
|
(ob->rotation == rot) && (ob->depth == depth) &&
|
||||||
|
|
Loading…
Reference in New Issue