libs: add gl_get_current_api()
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Thu, 26 Nov 2015 09:14:45 +0000 (10:14 +0100)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Mon, 30 Nov 2015 12:26:22 +0000 (13:26 +0100)
commit03fed576f0d9076d064cd2022099a6cb67df7c7b
treeface717f8ccd9df56bd729f779cb7fb6509f2fc5
parentd7bd0a4c103db08a20368975eafd397b3fab6a9f
libs: add gl_get_current_api()

In order to know which OpenGL API use, we must detect the API type of current
context. This patch adds the function gl_get_current_api() which returns the
OpenGL API type.

This function is an adaptation of gst_gl_context_get_current_gl_api() from
GstGL.

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/gstvaapiutils_glx.c
gst-libs/gst/vaapi/gstvaapiutils_glx.h