I am trying to learn OpenGL and following this: http://www.opengl-tutorial.org/beginners-tutorials/tutorial-3-matrices/
Up until the point where they started passing mat
glUniform*() calls set values for the current program. You need to call glUseProgram() before the glUniform*() call. In this example:
glUniform*()
glUseProgram()
glUseProgram(programID); glUniformMatrix4fv(MatrixID, 1, GL_FALSE, &MVP[0][0]);