glUniform4d need 4 doubles not 3.
Merge pull request #165 from vova616/patch-1

glUniform4d need 4 doubles not 3.