projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d7556a
)
glslstage: add debug as to why _set_strings() failed
author
Matthew Waters
<matthew@centricular.com>
Tue, 10 Nov 2015 09:15:56 +0000
(20:15 +1100)
committer
Tim-Philipp Müller
<tim@centricular.com>
Sat, 9 Dec 2017 19:32:10 +0000
(19:32 +0000)
gst-libs/gst/gl/gstglslstage.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/gl/gstglslstage.c
b/gst-libs/gst/gl/gstglslstage.c
index
89f97cf
..
bd0405f
100644
(file)
--- a/
gst-libs/gst/gl/gstglslstage.c
+++ b/
gst-libs/gst/gl/gstglslstage.c
@@
-295,8
+295,13
@@
gst_glsl_stage_set_strings (GstGLSLStage * stage, GstGLSLVersion version,
g_return_val_if_fail (str != NULL, FALSE);
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;
+ }
stage->priv->version = version;
stage->priv->profile = profile;