[vlc-commits] opengl: add documentation for the shader programs
Steve Lhomme
git at videolan.org
Wed Nov 16 12:12:08 CET 2016
vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Tue Nov 15 10:50:16 2016 +0100| [050f6b91e2b566bf1a9775d9ad9af4bee24309c0] | committer: Thomas Guillem
opengl: add documentation for the shader programs
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=050f6b91e2b566bf1a9775d9ad9af4bee24309c0
---
modules/video_output/opengl.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/video_output/opengl.c b/modules/video_output/opengl.c
index e5f23ba..5cc64a6 100644
--- a/modules/video_output/opengl.c
+++ b/modules/video_output/opengl.c
@@ -657,11 +657,13 @@ vout_display_opengl_t *vout_display_opengl_New(video_format_t *fmt,
free(infolog);
}
+ /* YUV/XYZ & Vertex shaders */
vgl->program[0] = vgl->CreateProgram();
vgl->AttachShader(vgl->program[0], vgl->shader[0]);
vgl->AttachShader(vgl->program[0], vgl->shader[2]);
vgl->LinkProgram(vgl->program[0]);
+ /* RGA & Vertex shaders */
vgl->program[1] = vgl->CreateProgram();
vgl->AttachShader(vgl->program[1], vgl->shader[1]);
vgl->AttachShader(vgl->program[1], vgl->shader[2]);
More information about the vlc-commits
mailing list