jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=22fafce84d015368ac4838d7fd129f76218df9da

commit 22fafce84d015368ac4838d7fd129f76218df9da
Author: Minkyoung Kim <mer....@samsung.com>
Date:   Tue Mar 31 14:13:06 2015 +0900

    evas/software_x11: Environment can influence the flow when the value is 1 
not else.
    
    Summary: Do not try swapbuf init only if value of env 'EVAS_NO_DRI_SWAPBUF' 
is 1.
    
    Reviewers: jpeg
    
    Subscribers: spacegrapher, cedric, wonsik
    
    Differential Revision: https://phab.enlightenment.org/D2259
---
 src/modules/evas/engines/software_x11/evas_engine.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/modules/evas/engines/software_x11/evas_engine.c 
b/src/modules/evas/engines/software_x11/evas_engine.c
index 65bb4df..91cf336 100644
--- a/src/modules/evas/engines/software_x11/evas_engine.c
+++ b/src/modules/evas/engines/software_x11/evas_engine.c
@@ -442,10 +442,15 @@ eng_setup(Evas *eo_e, void *in)
         if (info->info.backend == EVAS_ENGINE_INFO_SOFTWARE_X11_BACKEND_XLIB)
           {
              static int try_swapbuf = -1;
+             char* s;
 
              if (try_swapbuf == -1)
                {
-                  if (getenv("EVAS_NO_DRI_SWAPBUF")) try_swapbuf = 0;
+                  if ((s = getenv("EVAS_NO_DRI_SWAPBUF")) != NULL)
+                    {
+                       if (atoi(s) == 1) try_swapbuf = 0;
+                       else try_swapbuf = 1;
+                    }
                   else try_swapbuf = 1;
                }
              if (try_swapbuf)
@@ -459,7 +464,7 @@ eng_setup(Evas *eo_e, void *in)
                                           info->info.mask, 
info->info.shape_dither,
                                           info->info.destination_alpha);
              if (re) re->outbuf_alpha_get = 
evas_software_xlib_swapbuf_alpha_get;
-             else if (!re)
+             else
                {
                   re = _output_xlib_setup(e->output.w, e->output.h,
                                           info->info.rotation, 
info->info.connection,

-- 


Reply via email to