From f4aec3207b4ea4ddd40bb865e359fac2b034fdad Mon Sep 17 00:00:00 2001 From: Andres Gomez Date: Tue, 16 Dec 2014 18:01:42 +0100 Subject: [PATCH 1/2] Corrected FS --- tests/shaders/glsl-deriv-varyings.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/shaders/glsl-deriv-varyings.c b/tests/shaders/glsl-deriv-varyings.c index fa72eec..ca663a5 100644 --- a/tests/shaders/glsl-deriv-varyings.c +++ b/tests/shaders/glsl-deriv-varyings.c @@ -121,7 +121,7 @@ static const char *fragShaderText5 = "void main()\n" "{ \n" " gl_FragColor = vec4(dFdx(-abs(texCoords.x)) * -40.0,\n" - " dFdy(-abs(texCoords.y) * -40.0,\n" + " dFdy(-abs(texCoords.y)) * -40.0,\n" " 0.0, 1.0);\n" "} \n"; @@ -162,8 +162,8 @@ compileLinkProg(void) glShaderSource(fs1, 1, (const GLchar **) &fragShaderText, NULL); glShaderSource(fs2, 1, (const GLchar **) &fragShaderText2, NULL); glShaderSource(fs3, 1, (const GLchar **) &fragShaderText3, NULL); - glShaderSource(fs4, 1, (const GLchar **) &fragShaderText3, NULL); - glShaderSource(fs5, 1, (const GLchar **) &fragShaderText3, NULL); + glShaderSource(fs4, 1, (const GLchar **) &fragShaderText4, NULL); + glShaderSource(fs5, 1, (const GLchar **) &fragShaderText5, NULL); glCompileShader(vs1); glGetShaderiv(vs1, GL_COMPILE_STATUS, &stat); -- 1.9.1