opengl: factorize program creation
commite3d0c11923c8b64716f41d28b9ed24402da68ea5
authorRomain Vimont <rom1v@videolabs.io>
Tue, 28 Jan 2020 13:42:10 +0000 (28 14:42 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 23 Mar 2020 10:29:03 +0000 (23 11:29 +0100)
tree1de4f104c612e6fecf0f2f373d946d7fe0c3935e
parentf802918aa670477db0c3ccb06993579fe82e70c9
opengl: factorize program creation

Expose a single function to create an OpenGL program for a vertex shader
and a fragment shader.

This simplify the code, and handles the errors in the same way
everywhere.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/video_output/Makefile.am
modules/video_output/opengl/fragment_shaders.c
modules/video_output/opengl/gl_util.c [new file with mode: 0644]
modules/video_output/opengl/gl_util.h
modules/video_output/opengl/internal.h
modules/video_output/opengl/renderer.c
modules/video_output/opengl/sub_renderer.c