mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-07 15:02:40 +00:00
glslstage: add debug as to why _set_strings() failed
This commit is contained in:
parent
776ccf87b5
commit
3d5ed23a72
1 changed files with 6 additions and 1 deletions
|
@ -295,8 +295,13 @@ gst_glsl_stage_set_strings (GstGLSLStage * stage, GstGLSLVersion version,
|
||||||
g_return_val_if_fail (str != NULL, FALSE);
|
g_return_val_if_fail (str != NULL, FALSE);
|
||||||
|
|
||||||
if (!gst_gl_context_supports_glsl_profile_version (stage->context, version,
|
if (!gst_gl_context_supports_glsl_profile_version (stage->context, version,
|
||||||
profile))
|
profile)) {
|
||||||
|
const gchar *version_str = gst_glsl_version_to_string (version);
|
||||||
|
const gchar *profile_str = gst_glsl_profile_to_string (profile);
|
||||||
|
GST_ERROR_OBJECT (stage, "GL context does not support version %s and "
|
||||||
|
"profile %s", version_str, profile_str);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
stage->priv->version = version;
|
stage->priv->version = version;
|
||||||
stage->priv->profile = profile;
|
stage->priv->profile = profile;
|
||||||
|
|
Loading…
Reference in a new issue