]> git.sesse.net Git - movit/commitdiff
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 9c2ce597499d42a829097ddb5e3700341fde2ca1..3b15c3787d7e82644d6c5633d9ea05387e0efb88 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) {
        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;
        }
 
        GLint status;