texture: detect GL version and use the proper API
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Thu, 26 Nov 2015 09:34:12 +0000 (10:34 +0100)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Mon, 30 Nov 2015 12:26:22 +0000 (13:26 +0100)
commit4897d96945dabf3fa9a222b2d6443904865e34ed
treee5474c0d2083c367f739e5b41ed34bcd51eeceb8
parent1e39b59ce8c45669eb240c36e421771e8d5f7e82
texture: detect GL version and use the proper API

When receiving the texture from the application or the video sink, we must
know it size and border. To query the texture the API has changed according to
the OpenGL version used in the GL context of the application/vsink.

This patch checks the current context API type and queries the texture
according to this detected API.

Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
https://bugzilla.gnome.org/show_bug.cgi?id=753099
gst-libs/gst/vaapi/gstvaapitexture_glx.c