From: Marcel Hollerbach Date: Wed, 14 Oct 2015 09:08:29 +0000 (+0200) Subject: gl_x11: val can be everything expected 0 to mean true X-Git-Tag: v1.16.0-beta2~45 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a1be855fe4a0c36628e1393090d78bfb3236df07;p=platform%2Fupstream%2Fefl.git gl_x11: val can be everything expected 0 to mean true For me on a intel driver val is -1 and it needs to be inverted. So we need to checkout that val is not 0 and not equals to 1. Thx to raster for helping debugging this thing :). --- diff --git a/src/modules/evas/engines/gl_x11/evas_engine.c b/src/modules/evas/engines/gl_x11/evas_engine.c index 3d4dd12..bdbd86f 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); - if (val == 1) yinvert = 1; + if (val) 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); - if (val == 1) yinvert = 1; + if (val) yinvert = 1; glXGetFBConfigAttrib(eng_get_ob(re)->disp, configs[j], GLX_BIND_TO_TEXTURE_TARGETS_EXT, &val);