mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 18:20:44 +00:00
glcontext: require GL_ARB_ES2_compatibility for opengl3
until we generate gl3 compliant shaders https://bugzilla.gnome.org/show_bug.cgi?id=740012
This commit is contained in:
parent
dee5943c0e
commit
bbac8bf8d0
1 changed files with 9 additions and 0 deletions
|
@ -1322,6 +1322,15 @@ gst_gl_context_create_thread (GstGLContext * context)
|
||||||
context->priv->gl_exts = g_strdup (ext_const_c_str);
|
context->priv->gl_exts = g_strdup (ext_const_c_str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (gl_api & GST_GL_API_OPENGL3
|
||||||
|
&& !gst_gl_context_check_gl_version (context, GST_GL_API_OPENGL3, 4, 1)
|
||||||
|
&& !gst_gl_check_extension ("GL_ARB_ES2_compatibility",
|
||||||
|
context->priv->gl_exts)) {
|
||||||
|
g_set_error (error, GST_GL_CONTEXT_ERROR, GST_GL_CONTEXT_ERROR_FAILED,
|
||||||
|
"An opengl3 context created but the required ES2 compatibility was not found");
|
||||||
|
goto failure;
|
||||||
|
}
|
||||||
|
|
||||||
context->priv->alive = TRUE;
|
context->priv->alive = TRUE;
|
||||||
|
|
||||||
if (gl->DebugMessageCallback) {
|
if (gl->DebugMessageCallback) {
|
||||||
|
|
Loading…
Reference in a new issue