[184/906] add a couple of macros to autotools to compile with uintrepid automake...
authorFilippo Argiolas <filippo.argiolas@gmail.com>
Mon, 18 Aug 2008 07:06:09 +0000 (09:06 +0200)
committerMatthew Waters <ystreet00@gmail.com>
Sat, 15 Mar 2014 17:36:25 +0000 (18:36 +0100)
gst/gl/effects/gstgleffectssources.c

index 77c6834..0b88396 100644 (file)
@@ -197,7 +197,18 @@ const gchar *hconv9_fragment_source =
 "uniform float norm_offset;"
 "uniform float kernel[9];"
 "void main () {"
-"  float offset[9] = float[9] (-4.0, -3.0, -2.0, -1.0, 0.0, 1.0, 2.0, 3.0, 4.0);"
+/* "float offset[9] = float[9] (-4.0, -3.0, -2.0, -1.0, 0.0, 1.0, 2.0, 3.0, 4.0);" */
+/* don't use array constructor so we don't have to depend on #version 120 */
+"  float offset[9];" 
+"  offset[0] = -4.0;"
+"  offset[1] = -3.0;"
+"  offset[2] = -2.0;"
+"  offset[3] = -1.0;"
+"  offset[4] =  0.0;"
+"  offset[5] =  1.0;"
+"  offset[6] =  2.0;"
+"  offset[7] =  3.0;"
+"  offset[8] =  4.0;"
 "  vec2 texturecoord = gl_TexCoord[0].st;"
 "  int i;"
 "  vec4 sum = vec4 (0.0);"
@@ -219,7 +230,18 @@ const gchar *vconv9_fragment_source =
 "uniform float norm_offset;"
 "uniform float kernel[9];"
 "void main () {"
-"  float offset[9] = float[9] (-4.0, -3.0, -2.0, -1.0, 0.0, 1.0, 2.0, 3.0, 4.0);"
+/* "float offset[9] = float[9] (-4.0, -3.0, -2.0, -1.0, 0.0, 1.0, 2.0, 3.0, 4.0);" */
+/* don't use array constructor so we don't have to depend on #version 120 */
+"  float offset[9];"
+"  offset[0] = -4.0;"
+"  offset[1] = -3.0;"
+"  offset[2] = -2.0;"
+"  offset[3] = -1.0;"
+"  offset[4] =  0.0;"
+"  offset[5] =  1.0;"
+"  offset[6] =  2.0;"
+"  offset[7] =  3.0;"
+"  offset[8] =  4.0;"
 "  vec2 texturecoord = gl_TexCoord[0].st;"
 "  int i;"
 "  vec4 sum = vec4 (0.0);"