[vlc-devel] [PATCH] opengl: the orientation should apply before the projection

Steve Lhomme robux4 at videolabs.io
Tue Dec 6 11:12:18 CET 2016


---
 modules/video_output/opengl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_output/opengl.c b/modules/video_output/opengl.c
index bad83c2..0f49b99 100644
--- a/modules/video_output/opengl.c
+++ b/modules/video_output/opengl.c
@@ -281,7 +281,7 @@ static void BuildVertexShader(vout_display_opengl_t *vgl,
         " TexCoord0 = MultiTexCoord0;"
         " TexCoord1 = MultiTexCoord1;"
         " TexCoord2 = MultiTexCoord2;"
-        " gl_Position = OrientationMatrix * ProjectionMatrix * ZoomMatrix * ZRotMatrix * XRotMatrix * YRotMatrix * vec4(VertexPosition, 1.0);"
+        " gl_Position = ProjectionMatrix * OrientationMatrix * ZoomMatrix * ZRotMatrix * XRotMatrix * YRotMatrix * vec4(VertexPosition, 1.0);"
         "}";
 
     *shader = vgl->CreateShader(GL_VERTEX_SHADER);
-- 
2.10.1



More information about the vlc-devel mailing list