• Advertisement
Sign in to follow this  

Shader Linking Problem

This topic is 2885 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm trying to use a very, very simple texture shader. It looks like both the shaders compile and then fail to link. Vertex Shader:
void main()
{	
	gl_TexCoord[0] = gl_MultiTexCoord0;
	gl_Position = ftransform();		
}

Fragment Shader:
uniform sampler2D colorMap;

void main (void)
{
	gl_FragColor = texture2D( colorMap, gl_TexCoord[0].st);
}

The info logs from both shaders and the program object: Vertex shader was successfully compiled to run on hardware. Fragment shader was successfully compiled to run on hardware. Fragment shader(s) failed to link, vertex shader(s) failed to link. ERROR: Not all shaders have valid object code. ERROR: Not all shaders have valid object code. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I can't figure out for the life of me what could be wrong. These errors are completely unhelpful.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement