discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=5469c3b680017ba774b77ad40bf1c7a1b9610381

commit 5469c3b680017ba774b77ad40bf1c7a1b9610381
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Wed Oct 28 12:55:09 2015 -0400

    add E_COMP_ENGINE env var to determine sw/gl
    
    accepted values are 1, 2, sw, gl
    
    toggling config options is a hassle when debugging
---
 src/bin/e_comp.c | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/src/bin/e_comp.c b/src/bin/e_comp.c
index 6274235..655186c 100644
--- a/src/bin/e_comp.c
+++ b/src/bin/e_comp.c
@@ -1049,6 +1049,24 @@ e_comp_init(void)
 
    e_comp_new();
    e_comp->comp_type = E_PIXMAP_TYPE_NONE;
+
+   {
+      const char *gl;
+
+      gl = getenv("E_COMP_ENGINE");
+      if (gl)
+        {
+           int val;
+
+           val = strtol(gl, NULL, 10);
+           if ((val == E_COMP_ENGINE_SW) || (val == E_COMP_ENGINE_GL))
+             e_comp_config_get()->engine = val;
+           else if (!strcmp(gl, "gl"))
+             e_comp_config_get()->engine = E_COMP_ENGINE_GL;
+           else if (!strcmp(gl, "sw"))
+             e_comp_config_get()->engine = E_COMP_ENGINE_SW;
+        }
+   }
    {
       const char *eng;
       

-- 


Reply via email to