derekf pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=1639e99305083128e1f0d5ef3dcf0f2e6b061554

commit 1639e99305083128e1f0d5ef3dcf0f2e6b061554
Author: Derek Foreman <[email protected]>
Date:   Fri Mar 3 12:58:30 2017 -0600

    wayland_egl: Don't crash if gl context queried when no outbuf
    
    We can get here on session restore when we haven't had a chance
    to recreate the outbuf yet.
---
 src/modules/evas/engines/wayland_egl/evas_wl_main.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/modules/evas/engines/wayland_egl/evas_wl_main.c 
b/src/modules/evas/engines/wayland_egl/evas_wl_main.c
index 8f89183..b12f555 100644
--- a/src/modules/evas/engines/wayland_egl/evas_wl_main.c
+++ b/src/modules/evas/engines/wayland_egl/evas_wl_main.c
@@ -549,6 +549,8 @@ eng_outbuf_flush(Outbuf *ob, Tilebuf_Rect *surface_damage, 
Tilebuf_Rect *buffer_
 Evas_Engine_GL_Context *
 eng_outbuf_gl_context_get(Outbuf *ob)
 {
+   if (!ob) return NULL;
+
    return ob->gl_context;
 }
 

-- 


Reply via email to