Sign in to follow this  
kibokun

Shader Linking Problem

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this