Evas: Really use GLES3 by default (fix logic)
authorJean-Philippe Andre <jp.andre@samsung.com>
Wed, 18 Mar 2015 01:04:27 +0000 (10:04 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Wed, 18 Mar 2015 01:06:17 +0000 (10:06 +0900)
I enabled gles3 by default in a previous commit but apparently my
logic was all wrong and it fell back to gles2.

src/modules/evas/engines/gl_x11/evas_x_main.c

index 45065cb..071f8e4 100644 (file)
@@ -772,7 +772,7 @@ eng_best_visual_get(Evas_Engine_Info_GL_X11 *einfo)
           }
 
         if (gles3_supported &&
-            (!(s = getenv("EVAS_GL_DISABLE_GLES3")) || (atoi(s) != 1)))
+            ((s = getenv("EVAS_GL_DISABLE_GLES3")) && (atoi(s) == 1)))
           {
              INF("Disabling OpenGL ES 3.x support.");
              gles3_supported = EINA_FALSE;