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)
committerJulien Isorce <julien.isorce@collabora.co.uk>
Tue, 6 May 2014 14:39:12 +0000 (15:39 +0100)
commitd4fe519c2e3812315adc07c5513eac7596fb909f
tree95e5db5037f86d5229c004db238fbd5f1d5b12ca
parent531e19214a7500bf1c915e99be731d91f1d05394
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