diff options
author | wm4 <wm4@nowhere> | 2013-12-21 21:41:18 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-12-21 22:13:04 +0100 |
commit | eba5d025d2ba682de358b792dd15e80529d6a0f1 (patch) | |
tree | b4617680bce71ff4a44f113e967b3b5bbc651520 /video/out/gl_video.c | |
parent | 3fa584e2800fff5850e67a4018597cb707d9cc0b (diff) | |
download | mpv-eba5d025d2ba682de358b792dd15e80529d6a0f1.tar.bz2 mpv-eba5d025d2ba682de358b792dd15e80529d6a0f1.tar.xz |
msg: convert defines to enum
Also get rid of MSGL_HINT and the many MSGL_DBG* levels.
Diffstat (limited to 'video/out/gl_video.c')
-rw-r--r-- | video/out/gl_video.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/gl_video.c b/video/out/gl_video.c index 2e662f65ff..324013aef6 100644 --- a/video/out/gl_video.c +++ b/video/out/gl_video.c @@ -691,7 +691,7 @@ static GLuint create_shader(struct gl_video *p, GLenum type, const char *header, GLint log_length; gl->GetShaderiv(shader, GL_INFO_LOG_LENGTH, &log_length); - int pri = status ? (log_length > 1 ? MSGL_V : MSGL_DBG2) : MSGL_ERR; + int pri = status ? (log_length > 1 ? MSGL_V : MSGL_DEBUG) : MSGL_ERR; const char *typestr = type == GL_VERTEX_SHADER ? "vertex" : "fragment"; if (mp_msg_test_log(p->log, pri)) { MP_MSG(p, pri, "%s shader source:\n", typestr); @@ -727,7 +727,7 @@ static void link_shader(struct gl_video *p, GLuint program) GLint log_length; gl->GetProgramiv(program, GL_INFO_LOG_LENGTH, &log_length); - int pri = status ? (log_length > 1 ? MSGL_V : MSGL_DBG2) : MSGL_ERR; + int pri = status ? (log_length > 1 ? MSGL_V : MSGL_DEBUG) : MSGL_ERR; if (mp_msg_test_log(p->log, pri)) { GLchar *logstr = talloc_zero_size(NULL, log_length + 1); gl->GetProgramInfoLog(program, log_length, NULL, logstr); |