forked from enlightenment/efl
evas/wayland-egl: Don't crash when re->win is NULL
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
This commit is contained in:
parent
959cb4e053
commit
4c3242ca62
|
@ -544,6 +544,7 @@ static int
|
|||
_re_wincheck(Render_Engine *re)
|
||||
{
|
||||
if (!re) return 0;
|
||||
if (!re->win) return 0;
|
||||
if (re->win->surf) return 1;
|
||||
eng_window_resurf(re->win);
|
||||
if (!re->win->surf)
|
||||
|
@ -761,7 +762,7 @@ eng_setup(Evas *eo_e, void *in)
|
|||
if ((re->win) && (inc))
|
||||
re->win->gl_context->references--;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if ((re->win->w != e->output.w) ||
|
||||
(re->win->h != e->output.h))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue