opengl: Fix usage of eglCreate/DestroyImage
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Mon, 22 Aug 2022 20:33:23 +0000 (16:33 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 11 Oct 2022 08:23:45 +0000 (08:23 +0000)
commit82f63b0d64cbf9a0bc646174e339bc60e20e013b
tree0ca321ffb5bffd27bc4ebd4ae96c837c8672595f
parentec605e7b52e68b4fdb6a2e1db6f2e3d372f723a2
opengl: Fix usage of eglCreate/DestroyImage

The implementation was inconsistent between create and destroy. EGLImage
creation and destruction is requires for EGL 1.5 and up, while
otherwise the KHR version is only available if EGL_KHR_image_base
feature is set. Not doing these check may lead to getting a function
pointer to a stub, which is notably the case when using apitrace.

Fixes #1389

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2925>
subprojects/gst-plugins-base/gst-libs/gst/gl/egl/gsteglimage.c