mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
glslstage: 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.
This commit is contained in:
parent
04a5eee15e
commit
704d49b9c7
1 changed files with 2 additions and 0 deletions
|
@ -471,8 +471,10 @@ _compile_shader (GstGLContext * context, struct compile *data)
|
|||
gl->CompileShader (priv->handle);
|
||||
/* FIXME: supported threaded GLSL compilers and don't destroy compilation
|
||||
* performance by getting the compilation result directly after compilation */
|
||||
status = GL_FALSE;
|
||||
gl->GetShaderiv (priv->handle, GL_COMPILE_STATUS, &status);
|
||||
|
||||
len = 0;
|
||||
vtable->GetShaderInfoLog (priv->handle, sizeof (info_buffer) - 1, &len,
|
||||
info_buffer);
|
||||
info_buffer[len] = '\0';
|
||||
|
|
Loading…
Reference in a new issue