diff options
author | Julien Isorce <j.isorce@samsung.com> | 2015-07-02 10:26:18 +0100 |
---|---|---|
committer | Julien Isorce <j.isorce@samsung.com> | 2015-07-02 15:16:56 +0100 |
commit | f037b28a7b6e3bc52d45c1ab32c2ae33edca6f35 (patch) | |
tree | 5c72708e9702934bcdeba3417e5fc2ac1ef445ec /gst-libs/gst/gl/gstglshader.c | |
parent | fe283a9aeb62ad0a0f56c02772339153c1df96af (diff) | |
download | gstreamer-plugins-bad-f037b28a7b6e3bc52d45c1ab32c2ae33edca6f35.tar.gz |
gl: initialize output params to 0 before calling gl functions
The client side API of the Chromium's GPU Process has asserts
in debug mode that check that output params are initialized to 0.
Diffstat (limited to 'gst-libs/gst/gl/gstglshader.c')
-rw-r--r-- | gst-libs/gst/gl/gstglshader.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gst-libs/gst/gl/gstglshader.c b/gst-libs/gst/gl/gstglshader.c index 016e47517..a41bf388f 100644 --- a/gst-libs/gst/gl/gstglshader.c +++ b/gst-libs/gst/gl/gstglshader.c @@ -522,6 +522,7 @@ gst_gl_shader_compile (GstGLShader * shader, GError ** error) /* compile */ gl->CompileShader (priv->vertex_handle); /* check everything is ok */ + status = GL_FALSE; gl->GetShaderiv (priv->vertex_handle, GL_COMPILE_STATUS, &status); priv->vtable.GetShaderInfoLog (priv->vertex_handle, @@ -561,6 +562,7 @@ gst_gl_shader_compile (GstGLShader * shader, GError ** error) /* compile */ gl->CompileShader (priv->fragment_handle); /* check everything is ok */ + status = GL_FALSE; priv->vtable.GetShaderiv (priv->fragment_handle, GL_COMPILE_STATUS, &status); @@ -587,6 +589,7 @@ gst_gl_shader_compile (GstGLShader * shader, GError ** error) /* if nothing failed link shaders */ gl->LinkProgram (priv->program_handle); + status = GL_FALSE; priv->vtable.GetProgramiv (priv->program_handle, GL_LINK_STATUS, &status); priv->vtable.GetProgramInfoLog (priv->program_handle, |