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

Rémi Denis-Courmont remi at remlab.net
Sun Aug 21 04:12:23 CEST 2016


This does not even compile.

Le vendredi 19 août 2016, 16:41:19 Adrien Maglo a écrit :
> 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

-- 
Rémi Denis-Courmont
http://www.remlab.net/



More information about the vlc-devel mailing list