From b922ac605962df6b1cf86a0e710294be114f62c4 Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Tue, 11 Jan 2011 14:15:46 +0000 Subject: [PATCH] test-shader: Fix the edge-detect shader cogl_text_coord_in in a array to access the texture units. In this case we want to sample texture unit 0, where the texture is. --- tests/interactive/test-shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/interactive/test-shader.c b/tests/interactive/test-shader.c index c552fefa4..66bc928dc 100644 --- a/tests/interactive/test-shader.c +++ b/tests/interactive/test-shader.c @@ -144,7 +144,7 @@ static ShaderSource shaders[]= FRAGMENT_SHADER_VARS "float get_avg_rel(sampler2D texB, float dx, float dy)" "{" - " vec4 colorB = texture2D (texB, cogl_tex_coord_in.st + vec2(dx, dy));" + " vec4 colorB = texture2D (texB, cogl_tex_coord_in[0].st + vec2(dx, dy));" " return (colorB.r + colorB.g + colorB.b) / 3.0;" "}" FRAGMENT_SHADER_BEGIN