Sign in to follow this  
goodperiodical

Somewhat weird problem with GL shader compiler

Recommended Posts

I verified that both the vertex and fragment shader in the program are functioning but glGetUniformLocation is still returning -1 for uniform variables that were working 10 minutes ago. I don't think I altered any related code and there are no compile or link errors.
uniform vec3 LightPosition;//vertex header
int pnt = glGetUniformLocation(shaderProgram[0], "LightPosition");//source
Pretty straight forward I think.

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