cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=5c02935a866a5c1468603ca774c06efc80d5c2e0

commit 5c02935a866a5c1468603ca774c06efc80d5c2e0
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Mon Oct 12 17:47:19 2015 -0700

    evas: correctly get GLX_Y_INVERTED_EXT.
---
 src/modules/evas/engines/gl_x11/evas_engine.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/modules/evas/engines/gl_x11/evas_engine.c 
b/src/modules/evas/engines/gl_x11/evas_engine.c
index 7a14b8f..883b2db 100644
--- a/src/modules/evas/engines/gl_x11/evas_engine.c
+++ b/src/modules/evas/engines/gl_x11/evas_engine.c
@@ -2181,7 +2181,7 @@ _native_yinvert_cb(void *data, void *image)
 #else
         glXGetFBConfigAttrib(eng_get_ob(re)->disp, n->config,
                              GLX_Y_INVERTED_EXT, &val);
-          yinvert = val;
+        if (val == TRUE) yinvert = 1;
 #endif
      }
    else if (n->ns.type == EVAS_NATIVE_SURFACE_OPENGL)
@@ -2539,7 +2539,7 @@ eng_image_native_set(void *data, void *image, void 
*native)
                                   }
                                 glXGetFBConfigAttrib(eng_get_ob(re)->disp, 
configs[j],
                                                      GLX_Y_INVERTED_EXT, &val);
-                                yinvert = val;
+                                if (val == TRUE) yinvert = 1;
                                 glXGetFBConfigAttrib(eng_get_ob(re)->disp, 
configs[j],
                                                      
GLX_BIND_TO_TEXTURE_TARGETS_EXT,
                                                      &val);

-- 


Reply via email to