mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
[749/906] glshader: Add some more debug output
This commit is contained in:
parent
258bb6fb81
commit
d87a0eaf1d
1 changed files with 6 additions and 0 deletions
|
@ -402,6 +402,8 @@ gst_gl_shader_compile (GstGLShader * shader, GError ** error)
|
|||
info_buffer[len] = '\0';
|
||||
|
||||
if (status != GL_TRUE) {
|
||||
GST_ERROR ("Vertex Shader compilation failed:\n%s", info_buffer);
|
||||
|
||||
g_set_error (error, GST_GL_SHADER_ERROR,
|
||||
GST_GL_SHADER_ERROR_COMPILE,
|
||||
"Vertex Shader compilation failed:\n%s", info_buffer);
|
||||
|
@ -432,6 +434,8 @@ gst_gl_shader_compile (GstGLShader * shader, GError ** error)
|
|||
sizeof (info_buffer) - 1, &len, info_buffer);
|
||||
info_buffer[len] = '\0';
|
||||
if (status != GL_TRUE) {
|
||||
GST_ERROR ("Fragment Shader compilation failed:\n%s", info_buffer);
|
||||
|
||||
g_set_error (error, GST_GL_SHADER_ERROR,
|
||||
GST_GL_SHADER_ERROR_COMPILE,
|
||||
"Fragment Shader compilation failed:\n%s", info_buffer);
|
||||
|
@ -456,6 +460,8 @@ gst_gl_shader_compile (GstGLShader * shader, GError ** error)
|
|||
info_buffer[len] = '\0';
|
||||
|
||||
if (status != GL_TRUE) {
|
||||
GST_ERROR ("Shader linking failed:\n%s", info_buffer);
|
||||
|
||||
g_set_error (error, GST_GL_SHADER_ERROR,
|
||||
GST_GL_SHADER_ERROR_LINK, "Shader Linking failed:\n%s", info_buffer);
|
||||
priv->compiled = FALSE;
|
||||
|
|
Loading…
Reference in a new issue