[vlc-commits] opengl: the orientation should apply before the projection
Steve Lhomme
git at videolan.org
Wed Dec 7 22:55:38 CET 2016
vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Tue Dec 6 11:12:18 2016 +0100| [99ce03403e7036d07d8e4cfeca2e8ac229aa876c] | committer: Jean-Baptiste Kempf
opengl: the orientation should apply before the projection
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=99ce03403e7036d07d8e4cfeca2e8ac229aa876c
---
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);
More information about the vlc-commits
mailing list