mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
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
This commit is contained in:
parent
cdff13e07b
commit
e9f0d0fb51
1 changed files with 2 additions and 1 deletions
|
@ -1101,7 +1101,8 @@ _create_context_info (GstGLContext * context, GstGLAPI gl_api, gint * gl_major,
|
||||||
|
|
||||||
gl = context->gl_vtable;
|
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,
|
g_set_error (error, GST_GL_CONTEXT_ERROR, GST_GL_CONTEXT_ERROR_FAILED,
|
||||||
"glGetString not defined or returned invalid value");
|
"glGetString not defined or returned invalid value");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in a new issue