Test for valid engine output to see if we need to create it.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83236
This commit is contained in:
Christopher Michael 2013-01-24 09:16:03 +00:00 committed by Christopher Michael
parent 1e41dcd37f
commit 7cd113ea47
1 changed files with 7 additions and 0 deletions

View File

@ -87,6 +87,7 @@ eng_setup(Evas *eo_evas, void *einfo)
{
Evas_Engine_Info_Wayland_Shm *info;
Evas_Public_Data *epd;
Render_Engine *re = NULL;
/* try to cast the engine info to our engine info */
if (!(info = (Evas_Engine_Info_Wayland_Shm *)einfo))
@ -96,6 +97,12 @@ eng_setup(Evas *eo_evas, void *einfo)
if (!(epd = eo_data_get(eo_evas, EVAS_CLASS)))
return 0;
/* test for valid engine output */
if (!(re = epd->engine.data.output))
{
}
return 0;
}