glcontext: require a shader version to initialize.
authorMatthew Waters <matthew@centricular.com>
Thu, 21 May 2015 05:05:33 +0000 (15:05 +1000)
committerTim-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

index 8a71df1..98ed0ed 100644 (file)
@@ -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;