summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2015-10-14 11:08:29 +0200
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2015-10-14 11:14:02 +0200
commita1be855fe4a0c36628e1393090d78bfb3236df07 (patch)
treede67b4af1b2e70bdcb4c1a9bdd61eabec813ef8a
parentd8008f4625fd48fde2df24f98fe4cd54f1fb3b9b (diff)
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 :).
-rw-r--r--src/modules/evas/engines/gl_x11/evas_engine.c4
1 files 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 3d4dd12c00..bdbd86f937 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)
2181#else 2181#else
2182 glXGetFBConfigAttrib(eng_get_ob(re)->disp, n->config, 2182 glXGetFBConfigAttrib(eng_get_ob(re)->disp, n->config,
2183 GLX_Y_INVERTED_EXT, &val); 2183 GLX_Y_INVERTED_EXT, &val);
2184 if (val == 1) yinvert = 1; 2184 if (val) yinvert = 1;
2185#endif 2185#endif
2186 } 2186 }
2187 else if (n->ns.type == EVAS_NATIVE_SURFACE_OPENGL) 2187 else if (n->ns.type == EVAS_NATIVE_SURFACE_OPENGL)
@@ -2539,7 +2539,7 @@ eng_image_native_set(void *data, void *image, void *native)
2539 } 2539 }
2540 glXGetFBConfigAttrib(eng_get_ob(re)->disp, configs[j], 2540 glXGetFBConfigAttrib(eng_get_ob(re)->disp, configs[j],
2541 GLX_Y_INVERTED_EXT, &val); 2541 GLX_Y_INVERTED_EXT, &val);
2542 if (val == 1) yinvert = 1; 2542 if (val) yinvert = 1;
2543 glXGetFBConfigAttrib(eng_get_ob(re)->disp, configs[j], 2543 glXGetFBConfigAttrib(eng_get_ob(re)->disp, configs[j],
2544 GLX_BIND_TO_TEXTURE_TARGETS_EXT, 2544 GLX_BIND_TO_TEXTURE_TARGETS_EXT,
2545 &val); 2545 &val);