From: Steinar H. Gunderson Date: Sun, 26 Jan 2014 23:04:36 +0000 (+0100) Subject: Send shader compile log to stderr instead of stdout. X-Git-Tag: 1.0~49 X-Git-Url: https://git.sesse.net/?p=movit;a=commitdiff_plain;h=5b1ec775a021f215307fc63e8df54bb1109aeb58 Send shader compile log to stderr instead of stdout. Reported by Dan Dennedy. --- diff --git a/util.cpp b/util.cpp index 9c2ce59..3b15c37 100644 --- 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;