PDA

View Full Version : OGSL Compiling errors



juanjo
01-31-2004, 02:37 AM
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 ??

PanzerSchreck
01-31-2004, 02:40 AM
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.

juanjo
01-31-2004, 03:28 AM
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:
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.