From 30ab0747cce0ee6388877825baeefc1cdeffad5e Mon Sep 17 00:00:00 2001 From: Filippo Argiolas Date: Mon, 18 Aug 2008 09:06:09 +0200 Subject: [PATCH] [184/906] add a couple of macros to autotools to compile with uintrepid automake. remove array constructor so we don't have to depend on glsl #version 120. --- gst/gl/effects/gstgleffectssources.c | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/gst/gl/effects/gstgleffectssources.c b/gst/gl/effects/gstgleffectssources.c index 77c6834..0b88396 100644 --- a/gst/gl/effects/gstgleffectssources.c +++ b/gst/gl/effects/gstgleffectssources.c @@ -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);" -- 2.7.4