[vlc-commits] opengl: dump shaders with msg_Dbg

Thomas Guillem git at videolan.org
Fri Nov 17 08:40:14 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Nov 17 08:39:53 2017 +0100| [780d9bdb3848cb974f697f7bd5ed031f3481511c] | committer: Thomas Guillem

opengl: dump shaders with msg_Dbg

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=780d9bdb3848cb974f697f7bd5ed031f3481511c
---

 modules/video_output/opengl/fragment_shaders.c | 2 +-
 modules/video_output/opengl/vout_helper.c      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/video_output/opengl/fragment_shaders.c b/modules/video_output/opengl/fragment_shaders.c
index cc6dbc7a48..a5cb98588d 100644
--- a/modules/video_output/opengl/fragment_shaders.c
+++ b/modules/video_output/opengl/fragment_shaders.c
@@ -733,7 +733,7 @@ opengl_fragment_shader_init_impl(opengl_tex_converter_t *tc, GLenum tex_target,
     tc->vt->ShaderSource(fragment_shader, 1, (const char **)&ms.ptr, &length);
     tc->vt->CompileShader(fragment_shader);
     if (tc->b_dump_shaders)
-        fprintf(stderr, "\n=== Fragment shader for fourcc: %4.4s, colorspace: %d ===\n%s\n",
+        msg_Dbg(tc->gl, "\n=== Fragment shader for fourcc: %4.4s, colorspace: %d ===\n%s\n",
                 (const char *)&chroma, yuv_space, ms.ptr);
     free(ms.ptr);
 
diff --git a/modules/video_output/opengl/vout_helper.c b/modules/video_output/opengl/vout_helper.c
index 52a07cb8c6..f88719829b 100644
--- a/modules/video_output/opengl/vout_helper.c
+++ b/modules/video_output/opengl/vout_helper.c
@@ -399,7 +399,7 @@ static GLuint BuildVertexShader(const opengl_tex_converter_t *tc,
     GLuint shader = tc->vt->CreateShader(GL_VERTEX_SHADER);
     tc->vt->ShaderSource(shader, 1, (const char **) &code, NULL);
     if (tc->b_dump_shaders)
-        fprintf(stderr, "\n=== Vertex shader for fourcc: %4.4s ===\n%s\n",
+        msg_Dbg(tc->gl, "\n=== Vertex shader for fourcc: %4.4s ===\n%s\n",
                 (const char *)&tc->fmt.i_chroma, code);
     tc->vt->CompileShader(shader);
     free(code);



More information about the vlc-commits mailing list