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:
506129e
)
glcontext: require a shader version to initialize.
author
Matthew Waters
<matthew@centricular.com>
Thu, 21 May 2015 05:05:33 +0000
(15:05 +1000)
committer
Tim-Philipp Müller
<tim@centricular.com>
Sat, 9 Dec 2017 19:32:02 +0000
(19:32 +0000)
It's very near pointless to try our GL implementation without shaders.
https://bugzilla.gnome.org/show_bug.cgi?id=749284
gst-libs/gst/gl/gstglcontext.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/gl/gstglcontext.c
b/gst-libs/gst/gl/gstglcontext.c
index
8a71df1
..
98ed0ed
100644
(file)
--- a/
gst-libs/gst/gl/gstglcontext.c
+++ b/
gst-libs/gst/gl/gstglcontext.c
@@
-1101,7
+1101,8
@@
_create_context_info (GstGLContext * context, GstGLAPI gl_api, gint * gl_major,
gl = context->gl_vtable;
- if (!gl->GetString || !gl->GetString (GL_VERSION)) {
+ if (!gl->GetString || !gl->GetString (GL_VERSION)
+ || !gl->GetString (GL_SHADING_LANGUAGE_VERSION)) {
g_set_error (error, GST_GL_CONTEXT_ERROR, GST_GL_CONTEXT_ERROR_FAILED,
"glGetString not defined or returned invalid value");
return FALSE;