mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
wpe: Properly respect LIBGL_ALWAYS_SOFTWARE
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2252>
This commit is contained in:
parent
4dbfae0105
commit
9415106b02
1 changed files with 15 additions and 13 deletions
|
@ -393,6 +393,7 @@ WPEView::WPEView(WebKitWebContext* web_context, GstWpeVideoSrc* src, GstGLContex
|
||||||
threading.ready = FALSE;
|
threading.ready = FALSE;
|
||||||
|
|
||||||
g_mutex_init(&images_mutex);
|
g_mutex_init(&images_mutex);
|
||||||
|
if (g_strcmp0(g_getenv("LIBGL_ALWAYS_SOFTWARE"), "true")) {
|
||||||
if (context)
|
if (context)
|
||||||
gst.context = GST_GL_CONTEXT(gst_object_ref(context));
|
gst.context = GST_GL_CONTEXT(gst_object_ref(context));
|
||||||
if (display) {
|
if (display) {
|
||||||
|
@ -409,6 +410,7 @@ WPEView::WPEView(WebKitWebContext* web_context, GstWpeVideoSrc* src, GstGLContex
|
||||||
GST_DEBUG ("Available GStreamer GL Context is not EGL - not creating an EGL display from it");
|
GST_DEBUG ("Available GStreamer GL Context is not EGL - not creating an EGL display from it");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (gst.display_egl) {
|
if (gst.display_egl) {
|
||||||
EGLDisplay eglDisplay = (EGLDisplay)gst_gl_display_get_handle (GST_GL_DISPLAY(gst.display_egl));
|
EGLDisplay eglDisplay = (EGLDisplay)gst_gl_display_get_handle (GST_GL_DISPLAY(gst.display_egl));
|
||||||
|
|
Loading…
Reference in a new issue