From e9f0d0fb51e8d92b566868f8fa5db10c2eccc22f Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Thu, 21 May 2015 15:05:33 +1000 Subject: [PATCH] glcontext: require a shader version to initialize. 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/gl/gstglcontext.c b/gst-libs/gst/gl/gstglcontext.c index 8a71df15ce..98ed0ed8a2 100644 --- 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;