Try to create the Outbuf during initial engine setup.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2013-04-30 07:16:33 +01:00
parent 248c2f8233
commit 021e76aa25
1 changed files with 6 additions and 0 deletions

View File

@ -56,6 +56,12 @@ _output_setup(int w, int h, unsigned int rotation, unsigned int depth, Eina_Bool
if (re->ob) evas_outbuf_free(re->ob);
/* try to create new outbuf */
if (!(re->ob = evas_outbuf_setup(w, h, rotation, depth, alpha)))
{
if (re->tb) evas_common_tilebuf_free(re->tb);
free(re);
return NULL;
}
}
/* return the allocated render_engine structure */