[mutter] clutter/tests/interactive: Remove dead code



commit 2bcc9e2b867cfaee5d6646d62b055318f5f73cf9
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Sun Jan 20 08:57:58 2019 +0100

    clutter/tests/interactive: Remove dead code
    
    It was hidden behind a macro that was never defined anywhere.

 clutter/tests/interactive/test-cogl-shader-glsl.c | 17 -----------------
 1 file changed, 17 deletions(-)
---
diff --git a/clutter/tests/interactive/test-cogl-shader-glsl.c 
b/clutter/tests/interactive/test-cogl-shader-glsl.c
index 406d970ce..4dc65ad8a 100644
--- a/clutter/tests/interactive/test-cogl-shader-glsl.c
+++ b/clutter/tests/interactive/test-cogl-shader-glsl.c
@@ -51,22 +51,6 @@ static ShaderSource shaders[]=
     {"box-blur",
      FRAGMENT_SHADER_VARS
 
-#if GPU_SUPPORTS_DYNAMIC_BRANCHING
-     "uniform float radius;"
-     FRAGMENT_SHADER_BEGIN
-     "float u, v;"
-     "int count = 1;"
-     "for (u=-radius;u<radius;u++)"
-     "  for (v=-radius;v<radius;v++)"
-     "    {"
-     "      color += texture2D(tex, "
-     "          vec2(cogl_tex_coord_in[0].s + u * 2.0 * x_step, "
-     "               cogl_tex_coord_in[0].t + v * 2.0 * y_step));"
-     "      count ++;"
-     "    }"
-     "color = color / float(count);"
-     FRAGMENT_SHADER_END
-#else
      "vec4 get_rgba_rel(sampler2D tex, float dx, float dy)"
      "{"
      "  return texture2D (tex, cogl_tex_coord_in[0].st "
@@ -86,7 +70,6 @@ static ShaderSource shaders[]=
      "  color += get_rgba_rel (tex,  x_step,  y_step); count++;"
      "  color = color / count;"
      FRAGMENT_SHADER_END
-#endif
     },
 
     {"invert",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]