devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=37b767994eb4e4cab94a26764a4723cd1135e7d7

commit 37b767994eb4e4cab94a26764a4723cd1135e7d7
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Thu Jul 30 13:53:10 2015 -0400

    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.mich...@samsung.com>
---
 src/modules/evas/engines/wayland_shm/evas_outbuf.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/modules/evas/engines/wayland_shm/evas_outbuf.c 
b/src/modules/evas/engines/wayland_shm/evas_outbuf.c
index 91fa149..e1ca895 100644
--- a/src/modules/evas/engines/wayland_shm/evas_outbuf.c
+++ b/src/modules/evas/engines/wayland_shm/evas_outbuf.c
@@ -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) && 

-- 


Reply via email to