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:
Derek Foreman 2017-03-03 12:58:30 -06:00
parent 49e7932c86
commit 1639e99305
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}