opengl: move fragment shader creation to renderer
commitef476ce84e903fe90777e949fb4ad6005fcfa3ec
authorRomain Vimont <rom1v@videolabs.io>
Thu, 30 Jan 2020 11:07:17 +0000 (30 12:07 +0100)
committerSteve Lhomme <robux4@ycbcr.xyz>
Tue, 31 Mar 2020 09:03:00 +0000 (31 11:03 +0200)
treee491690dd5925c28ced079ff2f786388efa72479
parentaf960a8a89383aa1f61ab4996a49f39bd2fab53e
opengl: move fragment shader creation to renderer

The helper fragment_shaders.c was responsible to create the whole
fragment shaders. For now on, make it responsible to generate only the
piece of GLSL code necessary to access the input picture (i.e. to
implement vlc_texture()).

Make the renderer create its own fragment shader, using the
vlc_texture() function generated by fragment_shaders.c.

Signed-off-by: Alexandre Janniaux <ajanni@videolabs.io>
modules/video_output/opengl/fragment_shaders.c
modules/video_output/opengl/renderer.c