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?