bool ShaderProgramGL::use() const
{
- if(!is_linked) { //&& !link()) {
+ if(!is_linked) {
return false;
}
void ShaderProgramGL::set_uniform_matrix(int location, const Mat4 &mat)
{
if(!use() || location == -1) {
- fprintf(stderr, "FOO\n");
return;
}
- glUniformMatrix4fv(location, 1, GL_TRUE, (float *)&mat.m[0][0]);
-}
\ No newline at end of file
+ glUniformMatrix4fv(location, 1, GL_FALSE, mat[0]);
+}