Revert "wpe: Properly respect LIBGL_ALWAYS_SOFTWARE"

This causes issues I didn't see:
     https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2252#note_927633

Let's just tell people to use capsfilter to force software rendering in
`wpesrc` for now.

The intent was to allow forcing it easily in playbin2 for the CI, but
we will do it some other way and see when time comes.

This reverts commit 9415106b02.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2273>
This commit is contained in:
Thibault Saunier 2021-05-21 09:54:33 -04:00
parent a6ebda3907
commit ca1812f38c

View file

@ -381,7 +381,6 @@ WPEView::WPEView(WebKitWebContext* web_context, GstWpeVideoSrc* src, GstGLContex
threading.ready = FALSE;
g_mutex_init(&images_mutex);
if (g_strcmp0(g_getenv("LIBGL_ALWAYS_SOFTWARE"), "true")) {
if (context)
gst.context = GST_GL_CONTEXT(gst_object_ref(context));
if (display) {
@ -398,7 +397,6 @@ WPEView::WPEView(WebKitWebContext* web_context, GstWpeVideoSrc* src, GstGLContex
GST_DEBUG ("Available GStreamer GL Context is not EGL - not creating an EGL display from it");
}
}
}
if (gst.display_egl) {
EGLDisplay eglDisplay = (EGLDisplay)gst_gl_display_get_handle (GST_GL_DISPLAY(gst.display_egl));