watcher

OpenGL & ATI Mobility Radeon HD 4670

Discussion created by watcher on May 28, 2010
Latest reply on Jul 29, 2010 by frali
Unable to create program: Fragment shader(s) linked, vertex shader(s) failed to link.

Hello,

Vertex shader:

=====================================

#version 120

attribute mat3x4 vTransform;

void main()
{
    vec4 position = gl_Vertex;
    position.xyz  = gl_Vertex * vTransform;

    gl_Position   = gl_ModelViewProjectionMatrix * position;
}

=====================================

Fragment shader:

=====================================

#version 120

uniform vec4[3] gradientData;

void main()
{
    float gradient = clamp(dot(gl_FragCoord.xy - gradientData[0].xy, gradientData[0].zw), 0.0, 1.0);

    gl_FragColor = mix(gradientData[1], gradientData[2], gradient);
}

=====================================

Result:

Unable to create program: Fragment shader(s) linked,  vertex shader(s) failed to link.

Why? This works on any other graphics card I tried so far. Though, to be honest, the other graphics cards are NVIDIA cards.

I have catalyst 10.5

 

Outcomes