ecore_evas/wayland_shm: Check if the Ecore_Evas is visible on render.

Without this check, the code tries to access win->surface, which will be
NULL, causing a segfault.

Fix ticket #2304.
This commit is contained in:
Rafael Antognolli 2013-03-20 18:04:16 -03:00
parent 61c50e9d1c
commit 7a01acd60d
1 changed files with 5 additions and 0 deletions

View File

@ -862,6 +862,11 @@ _ecore_evas_wl_common_render(Ecore_Evas *ee)
/* TODO: handle comp no sync */
if (ee->in_async_render) return 0;
if (!ee->visible)
{
evas_norender(ee->evas);
return 0;
}
EINA_LIST_FOREACH(ee->sub_ecore_evas, l, ee2)
{