Send shader compile log to stderr instead of stdout.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 26 Jan 2014 23:04:36 +0000 (00:04 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 26 Jan 2014 23:04:36 +0000 (00:04 +0100)
Reported by Dan Dennedy.

util.cpp

index 9c2ce59..3b15c37 100644 (file)
--- a/util.cpp
+++ b/util.cpp
@@ -99,7 +99,7 @@ GLuint compile_shader(const string &shader_src, GLenum type)
        glGetShaderInfoLog(obj, log_length, &log_length, info_log);
        info_log[log_length] = 0; 
        if (strlen(info_log) > 0) {
-               printf("shader compile log: %s\n", info_log);
+               fprintf(stderr, "Shader compile log: %s\n", info_log);
        }
 
        GLint status;