backup
[demo] / src / opengl / shader-gl.cc
index 1ce36b7..374673f 100644 (file)
@@ -132,7 +132,7 @@ bool ShaderProgramGL::link()
 
 bool ShaderProgramGL::use() const
 {
-       if(!is_linked) { //&& !link()) {
+       if(!is_linked) {
                return false;
        }
 
@@ -240,9 +240,8 @@ void ShaderProgramGL::set_uniformf(int location, float x, float y, float z, floa
 void ShaderProgramGL::set_uniform_matrix(int location, const Mat4 &mat)
 {
        if(!use() || location == -1) {
-               fprintf(stderr, "FOO\n");
                return;
        }
 
        glUniformMatrix4fv(location, 1, GL_FALSE, mat[0]);
-}
\ No newline at end of file
+}