During engine setup, try to allocate a new Render_Engine structure.

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

SVN revision: 83241
This commit is contained in:
Christopher Michael 2013-01-24 09:16:19 +00:00 committed by Christopher Michael
parent 753aa3d487
commit f0a6c5ca26
1 changed files with 8 additions and 1 deletions

View File

@ -61,7 +61,14 @@ int _evas_engine_way_shm_log_dom = -1;
static void *
_output_engine_setup(int w, int h, unsigned int rotation, unsigned int depth, Eina_Bool destination_alpha, struct wl_shm *wl_shm, struct wl_surface *wl_surface, int try_swap)
{
return NULL;
Render_Engine *re = NULL;
/* try to allocate a new render engine */
if (!(re = calloc(1, sizeof(Render_Engine))))
return NULL;
/* return allocated render engine */
return re;
}
/* engine functions */