gl: do not allocate the target texture of an EGLImage
authorJulien Isorce <julien.isorce@collabora.co.uk>
Tue, 6 May 2014 10:59:24 +0000 (11:59 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:39 +0000 (19:31 +0000)
commitd7c54444472ad1c2f02d2156072783d6f0ba9497
tree287bdded9423f78c280592c07f9c51e4c67aa36c
parent4bc96ae4cdfd8356f611f7c98fbb397a7c53b2ca
gl: do not allocate the target texture of an EGLImage

The target texture of an EGLImage is the texture bind just
before calling glEGLImageTargetTexture2D.

As we currently only support a gl texture as the source of an EGLImage
the gl texture is actually already allocated when creating the eglimage.

I also see some cases where it fails to upload an eglimage when
glTexImage2D is called on the target.
gst-libs/gst/gl/gstglupload.c