OGSL Compiling errors

Hi. I have been compiling OGSL programs in my Radeon 9800, but i don’t understand why, now the OpenGL compiler engine launchs strange errors :

ERROR: 0:5: ‘gl_FragColor’ : undeclared identifier

This is a Built-in variable. How it’s possible ??. Any suggestion ??

1.) Make sure that you spell it correctly. gl_fragcolor isn’t the same as gl_FragColor.

2.) Where do you try to access that var? I hope it’s in a fragment shader, cause it isn’t (naturally) available in a vertex shader.

Hmmm… I am an idiot. I was compiling a fragment program as vertex program. Thank you very much. I want to be grateful for your response to you. Thanks again.

Originally posted by PanzerSchreck:
[b]1.) Make sure that you spell it correctly. gl_fragcolor isn’t the same as gl_FragColor.

2.) Where do you try to access that var? I hope it’s in a fragment shader, cause it isn’t (naturally) available in a vertex shader.[/b]

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