[vlc-devel] [PATCH] OpenGL: fix subpicture rendering

Adrien Maglo magsoft at videolan.org
Sun Aug 21 08:52:55 CEST 2016


Define the missing matrices of the vertex shader.
---
 modules/video_output/opengl.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/video_output/opengl.c b/modules/video_output/opengl.c
index fb53679..6017fdc 100644
--- a/modules/video_output/opengl.c
+++ b/modules/video_output/opengl.c
@@ -1714,6 +1714,11 @@ int vout_display_opengl_Display(vout_display_opengl_t *vgl,
 
             // Subpictures have the correct orientation:
             vgl->UniformMatrix4fv(vgl->GetUniformLocation(vgl->program[1], "OrientationMatrix"), 1, GL_FALSE, identity);
+            vgl->UniformMatrix4fv(vgl->GetUniformLocation(vgl->program[1], "ProjectionMatrix"), 1, GL_FALSE, identity);
+            vgl->UniformMatrix4fv(vgl->GetUniformLocation(vgl->program[1], "ViewMatrix"), 1, GL_FALSE, identity);
+            vgl->UniformMatrix4fv(vgl->GetUniformLocation(vgl->program[1], "YRotMatrix"), 1, GL_FALSE, identity);
+            vgl->UniformMatrix4fv(vgl->GetUniformLocation(vgl->program[1], "XRotMatrix"), 1, GL_FALSE, identity);
+            vgl->UniformMatrix4fv(vgl->GetUniformLocation(vgl->program[1], "ZoomMatrix"), 1, GL_FALSE, identity);
 #endif
         } else {
 #ifdef SUPPORTS_FIXED_PIPELINE
-- 
2.7.4



More information about the vlc-devel mailing list