Page MenuHomePhabricator

mismatch in generated shader
Open, Incoming QueuePublic

Description

From 51169ac325c:

diff --git a/src/modules/evas/engines/gl_common/shader/fragment.glsl b/src/modules/evas/engines/gl_common
/shader/fragment.glsl
index 39fccf1119..b51bbb4d38 100644
--- a/src/modules/evas/engines/gl_common/shader/fragment.glsl
+++ b/src/modules/evas/engines/gl_common/shader/fragment.glsl
@@ -234,6 +234,10 @@ vec4 fetch_pixel(float ox, float oy)
    c.rgb = 0.3 * c.r + 0.59 * c.g + 0.11 * c.b;
 #endif

+#ifdef SHD_FILTER_INVERSE_COLOR
+   c.rgb = c.a - c.rgba;
+#endif
+
 #ifndef SHD_FILTER_BLUR

    gl_FragColor =

But the committed shader code has:

diff --git a/src/modules/evas/engines/gl_common/shader/evas_gl_shaders.x b/src/modules/evas/engines/gl_common/shader/evas_gl_shaders.x
index 73ca4bef11..e5c16b5b75 100644
--- a/src/modules/evas/engines/gl_common/shader/evas_gl_shaders.x
+++ b/src/modules/evas/engines/gl_common/shader/evas_gl_shaders.x
@@ -217,6 +217,9 @@ static const char fragment_glsl[] =
    "#ifdef SHD_FILTER_GRAYSCALE\n"
    "   c.rgb = 0.3 * c.r + 0.59 * c.g + 0.11 * c.b;\n"
    "#endif\n"
+   "#ifdef SHD_FILTER_INVERSE_COLOR\n"
+   "   c.rgb = c.a - c.rgb;\n"
+   "#endif\n"
    "#ifndef SHD_FILTER_BLUR\n"
    "   gl_FragColor =\n"
    "       c\n"