mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 03:29:50 +00:00
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
21bd8ee536
commit
8d8063060e
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue