gl/context: move egl creation lower in priority on _new()
authorMatthew Waters <matthew@centricular.com>
Tue, 18 May 2021 10:00:01 +0000 (20:00 +1000)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 19 May 2021 10:15:56 +0000 (10:15 +0000)
commit42512c92de9fb49f1b2af48889313f0ff0c9fd6b
tree5fc7eb0b4890c348c3a5213cfad03dc8136a28fd
parentf0eca69a14137b8a9383fe2706c31f2365ff8b36
gl/context: move egl creation lower in priority on _new()

e.g. if running a dual wgl/egl built library, then egl will always
succeed in creating the GstGLContext because almost anything could
support egl, as long as eglGetDisplay() works.

wgl, however has a check for the correct display type so should move
earlier in the tried list.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1154>
gst-libs/gst/gl/gstglcontext.c