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

Adrien Maglo magsoft at videolan.org
Fri Aug 19 16:41:19 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..10761aa 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[program], "ProjectionMatrix"), 1, GL_FALSE, identity);
+            vgl->UniformMatrix4fv(vgl->GetUniformLocation(vgl->program[program], "ViewMatrix"), 1, GL_FALSE, identity);
+            vgl->UniformMatrix4fv(vgl->GetUniformLocation(vgl->program[program], "YRotMatrix"), 1, GL_FALSE, identity);
+            vgl->UniformMatrix4fv(vgl->GetUniformLocation(vgl->program[program], "XRotMatrix"), 1, GL_FALSE, identity);
+            vgl->UniformMatrix4fv(vgl->GetUniformLocation(vgl->program[program], "ZoomMatrix"), 1, GL_FALSE, identity);
 #endif
         } else {
 #ifdef SUPPORTS_FIXED_PIPELINE
-- 
2.7.4



More information about the vlc-devel mailing list