forked from enlightenment/efl
minor formatting fixes.
Signed-off-by: Chris Michael <devilhorns@comcast.net>
This commit is contained in:
parent
1d58f5ff1d
commit
5f5ab9d9c6
|
@ -1288,12 +1288,11 @@ evgl_engine_init(void *eng_data, EVGL_Interface *efunc)
|
|||
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.");
|
||||
|
@ -1322,7 +1321,7 @@ evgl_engine_init(void *eng_data, EVGL_Interface *efunc)
|
|||
}
|
||||
|
||||
// Assign functions
|
||||
evgl_engine->funcs = efunc;
|
||||
evgl_engine->funcs = efunc;
|
||||
|
||||
// Initialize Resource TLS
|
||||
if (eina_tls_new(&evgl_engine->resource_key) == EINA_FALSE)
|
||||
|
@ -1334,9 +1333,9 @@ evgl_engine_init(void *eng_data, EVGL_Interface *efunc)
|
|||
|
||||
// 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));
|
||||
|
@ -1353,19 +1352,19 @@ evgl_engine_init(void *eng_data, EVGL_Interface *efunc)
|
|||
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;
|
||||
|
@ -1386,7 +1385,8 @@ error:
|
|||
// 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)
|
||||
|
|
Loading…
Reference in New Issue