Evas (wayland_egl): Add traps for a NULL rendering engine.

This can happen when rapidly opening & closing windows and when
engines are swapped between shm & egl programmatically.



SVN revision: 74616
This commit is contained in:
Christopher Michael 2012-07-31 06:59:35 +00:00
parent 2631bb075f
commit 2aa4cd4bd5
1 changed files with 4 additions and 0 deletions

View File

@ -846,6 +846,8 @@ eng_output_redraws_rect_add(void *data, int x, int y, int w, int h)
Render_Engine *re;
re = (Render_Engine *)data;
if ((!re) || (!re->win)) return;
eng_window_use(re->win);
evas_gl_common_context_resize(re->win->gl_context, re->win->w, re->win->h, re->win->rot);
evas_common_tilebuf_add_redraw(re->tb, x, y, w, h);
@ -1952,6 +1954,8 @@ static Eina_Bool
eng_canvas_alpha_get(void *data, void *info __UNUSED__)
{
Render_Engine *re = (Render_Engine *)data;
if ((!re) || (!re->win)) return EINA_FALSE;
return re->win->alpha;
}