glslstage: properly return an error when we could not create the shader stage
While it was erroring out correctly later, there were GLib warnings about setting a GError over the top of another GError.
This commit is contained in:
parent
ef319c7b8f
commit
1f35fcf06d
@ -436,6 +436,7 @@ _compile_shader (GstGLContext * context, struct compile *data)
|
||||
if (!_ensure_shader (data->stage)) {
|
||||
g_set_error (data->error, GST_GLSL_ERROR, GST_GLSL_ERROR_COMPILE,
|
||||
"Failed to create shader object");
|
||||
data->result = FALSE;
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user