error C0502: syntax error at token “gl_FragColor”
what’s matter?
original version requres 400, I change out into gl_FragColor in order to meet v2.1.
gl_FragColor vec4 FragColor;
void main()
{
FragColor = vec4(Color,1.0);
}
get warning and error, error C0502: syntax error at token “gl_FragColor”
[QUOTE=reader1;1264812]original version requres 400, I change out into gl_FragColor in order to meet v2.1.
gl_FragColor vec4 FragColor;
get warning and error, error C0502: syntax error at token “gl_FragColor”[/QUOTE]
A user-defined output would be declared with
out vec4 FragColor;
The built-in output gl_FragColor doesn’t need to be declared.
[QUOTE=GClements;1264814]A user-defined output would be declared with
out vec4 FragColor;
The built-in output gl_FragColor doesn’t need to be declared.[/QUOTE]
Thank you. the problem has been solved by update driver to v3.3.
All is working well now.
However, would you pls show me when I change “in” into “attribute”, there is no problem, while gl_fragcolor is matter.