From eba5d025d2ba682de358b792dd15e80529d6a0f1 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 21 Dec 2013 21:41:18 +0100 Subject: msg: convert defines to enum Also get rid of MSGL_HINT and the many MSGL_DBG* levels. --- video/out/gl_common.c | 2 +- video/out/gl_video.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'video') diff --git a/video/out/gl_common.c b/video/out/gl_common.c index 881cd62835..87089cc9d0 100644 --- a/video/out/gl_common.c +++ b/video/out/gl_common.c @@ -549,7 +549,7 @@ void mpgl_load_functions(GL *gl, void *(*getProcAddress)(const GLubyte *), if (has_legacy) mp_msg_log(log, MSGL_V, "OpenGL legacy compat. found.\n"); - mp_msg_log(log, MSGL_DBG2, "Combined OpenGL extensions string:\n%s\n", + mp_msg_log(log, MSGL_DEBUG, "Combined OpenGL extensions string:\n%s\n", gl->extensions); for (int n = 0; n < sizeof(gl_functions) / sizeof(gl_functions[0]); n++) { 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); -- cgit v1.2.3