AMD glLinkProgram crash

Just for general information. I caused the AMD driver to crash in glLinkProgram with the following code

vec4  Tuflow_Frag(vec2 p_ST, vec4 p_Colour)
  ivec2 st = ivec2(floor(;
  // fetch results colour
  vec4 tuflow_colour = texelFetch(u_Tuflow_Texture,st,0);
  // blend with background colour
  if ( == vec3(0,0,0))
    tuflow_colour = p_Colour;
  { = mix(,,p_Colour.w);
  tuflow_colour.w = p_Colour.w;

  return tuflow_colour;

  if (st.x < 0)
    return vec4(1,0,0,1);
  else if (st.x < 1)
    return vec4(0,p_ST.s,0,1);
  else if (st.x < 2)
    return vec4(0,0,1,1);
    return vec4(1,1,1,1);

The problem was resolved by removing the un-used code after the first return statement.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.