gl: add and use gst_gl_internal_format_rgba
authorJulien Isorce <j.isorce@samsung.com>
Wed, 27 May 2015 15:28:39 +0000 (16:28 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:02 +0000 (19:32 +0000)
commitfce0e0ba3c4028297efada0eb115872eadd345a5
treeac38817dabaf1aa46251e53e0ac7e37ccbc9a2b1
parent2efeb71c837f6b542d81ba82394b1b2c9ac62440
gl: add and use gst_gl_internal_format_rgba

Previously when compiling GstGL with both GL and GLES2,
GL_RGBA8 was picked from GL/gl.h. But a clash may happen at
runtime when one is selecting GLES2.

gst_gl_internal_format_rgba allows to check at runtime
if it should use GL_RGBA or GL_RGBA8.
ext/gl/gstgleffects.c
ext/gl/gstglfiltershader.c
gst-libs/gst/gl/glprototypes/gstgl_gles2compat.h
gst-libs/gst/gl/gstglcolorconvert.c
gst-libs/gst/gl/gstglframebuffer.c
gst-libs/gst/gl/gstglmemory.c
gst-libs/gst/gl/gstglutils.c
gst-libs/gst/gl/gstglutils.h