gl: add convenient functions to setup default vertex and fragment shaders
authorJulien Isorce <julien.isorce@collabora.co.uk>
Wed, 30 Apr 2014 14:20:23 +0000 (15:20 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:38 +0000 (19:31 +0000)
commitcebcc837de7c593f09f03396a06d814583fcc474
treeed68240ebdf276bf977678272e74db09d505002b
parent95290346c6206132e0ffa21d0f51118a704d60dc
gl: add convenient functions to setup default vertex and fragment shaders

Most of our 2D filters use the same simple vertex shader.
Also define the default fragment shader as the identity.

Avoid duplicating the same vertex and fragment shader text.
gst-libs/gst/gl/gstglshader.c
gst-libs/gst/gl/gstglshader.h