int direct_mem_opt = 0, 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);
+ _evas_gl_log_dom = eina_log_domain_register("EvasGL", EVAS_DEFAULT_LOG_COLOR);
if (_evas_gl_log_dom < 0)
{
EINA_LOG_ERR("Can not create a module log domain.");
}
// Assign functions
- evgl_engine->funcs = efunc;
+ evgl_engine->funcs = efunc;
// Initialize Resource TLS
if (eina_tls_new(&evgl_engine->resource_key) == EINA_FALSE)
// Initialize Extensions
if (efunc->proc_address_get && efunc->ext_string_get)
- evgl_api_ext_init(efunc->proc_address_get, efunc->ext_string_get(eng_data));
+ evgl_api_ext_init(efunc->proc_address_get, efunc->ext_string_get(eng_data));
else
- ERR("Proc address get function not available. Extension not initialized.");
+ ERR("Proc address get function not available. Extension not initialized.");
DBG("GLUE Extension String: %s", efunc->ext_string_get(eng_data));
DBG("GL Extension String: %s", glGetString(GL_EXTENSIONS));
s = getenv("EVAS_GL_DIRECT_MEM_OPT");
if (s) direct_mem_opt = atoi(s);
if (direct_mem_opt == 1)
- evgl_engine->direct_mem_opt = 1;
+ evgl_engine->direct_mem_opt = 1;
// Check if Direct Rendering Override Force Off flag is on
s = getenv("EVAS_GL_DIRECT_OVERRIDE_FORCE_OFF");
if (s) direct_off = atoi(s);
if (direct_off == 1)
- evgl_engine->direct_force_off = 1;
+ evgl_engine->direct_force_off = 1;
// Check if API Debug mode is on
s = getenv("EVAS_GL_API_DEBUG");
if (s) debug_mode = atoi(s);
if (debug_mode == 1)
- evgl_engine->api_debug_mode = 1;
+ evgl_engine->api_debug_mode = 1;
// Maint Thread ID (get tid not available in eina thread yet)
evgl_engine->main_tid = 0;
// Terminate engine and all the resources
// - destroy all internal resources
// - free allocated engine struct
-void evgl_engine_shutdown(void *eng_data)
+void
+evgl_engine_shutdown(void *eng_data)
{
// Check if engine is valid
if (!evgl_engine)