int direct_off = 0, debug_mode = 0;
char *s = NULL;
+ if (evgl_engine) return evgl_engine;
+
// Initialize Log Domain
if (_evas_gl_log_dom < 0)
_evas_gl_log_dom = eina_log_domain_register("EvasGL", EVAS_DEFAULT_LOG_COLOR);
e->engine.data.output = re;
gl_wins++;
+ re->evgl_engine = evgl_engine_create(&evgl_funcs, (void*)re);
+ if (!re->evgl_engine)
+ ERR("Error Creating Evas_GL Engine. Evas GL will not be supported!");
+
if (!initted)
{
evas_common_cpu_init();
-
evas_common_blend_init();
evas_common_image_init();
evas_common_convert_init();
evas_common_font_init();
evas_common_draw_init();
evas_common_tilebuf_init();
-
- re->evgl_engine = evgl_engine_create(&evgl_funcs, (void*)re);
-
- if (!re->evgl_engine)
- {
- ERR("Error Creating Evas_GL Engine. Evas GL will not be supported!");
- }
-
initted = 1;
}
}
{
Render_Engine *re = (Render_Engine *)data;
EVGL_Context *sctx = (EVGL_Context *)share_context;
-
return evgl_context_create(re->evgl_engine, sctx);
}