5 Replies Latest reply on Jul 29, 2010 12:05 AM by frali

    OpenGL & ATI Mobility Radeon HD 4670

    watcher
      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