Render_Engine *re;
Outbuf *ob;
+ /* if we have no drm device, get one */
+ if (info->info.fd < 0)
+ {
+ /* try to init drm (this includes openening the card & tty) */
+ if (!evas_drm_init(info, 0))
+ goto on_error;
+ }
+
/* try to allocate space for our render engine structure */
if (!(re = calloc(1, sizeof(Render_Engine))))
- return NULL;
+ goto on_error;
/* try to create new outbuf */
if (!(ob = evas_outbuf_setup(info, w, h)))
w, h))
goto on_error;
- /* if we have no drm device, get one */
- if (info->info.fd < 0)
- {
- /* try to init drm (this includes openening the card & tty) */
- if (!evas_drm_init(info))
- goto on_error;
- }
-
/* return the allocated render_engine structure */
return re;