forked from enlightenment/efl
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.
This commit is contained in:
parent
49e7932c86
commit
1639e99305
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue