problems with gl_FragData[x] and NVidia

I have a shader that outputs to 2 colors

uniform sampler2D s_texture_0;
varying vec2 v_TexC0;

void main()
{	vec3 bump = texture2D(s_texture_0, v_TexC0.xy).xyz * 2.0 - 1.0;
	gl_FragData[0] = vec4(bump, 1.0);
	gl_FragData[1] = vec4(v_TexC0, 0.0, 1.0);
}

On ATI cards everything just fine, but after I test it on NVidia I get these errors:

 Fragment info
-------------
<stdlib>(9311) : error C5102: semantics attribute "COLOR" has too big of a numeric index (1)
<stdlib>(9311) : error C5102: semantics attribute "COLOR" has too big of a numeric index (2)
<stdlib>(9311) : error C5102: semantics attribute "COLOR" has too big of a numeric index (3)
<stdlib>(9311) : error C5041: cannot locate suitable resource to bind parameter "<null atom>"
<stdlib>(9311) : error C5041: cannot locate suitable resource to bind parameter "<null atom>"
<stdlib>(9311) : error C5041: cannot locate suitable resource to bind parameter "<null atom>"

What’s the problem?

What’s your card and driver? I have no problem on 7800GT + 84.xx

FX5500
78.01

Originally posted by SKoder:
FX5500
78.01

FX line does not support multiple render targets ( to be more precise it supports them but with the limitation of max 1 render target :slight_smile: )