[vlc-commits] opengl: remove useless cast

Zhao Zhili git at videolan.org
Mon Apr 16 14:23:25 CEST 2018


vlc | branch: master | Zhao Zhili <quinkblack at foxmail.com> | Mon Apr 16 20:14:06 2018 +0800| [cc3284dc984aee919d06992500fa2961f4636cde] | committer: Thomas Guillem

opengl: remove useless cast

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cc3284dc984aee919d06992500fa2961f4636cde
---

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

diff --git a/modules/video_output/opengl/vout_helper.c b/modules/video_output/opengl/vout_helper.c
index 56f5be7bc3..2bf4f815bd 100644
--- a/modules/video_output/opengl/vout_helper.c
+++ b/modules/video_output/opengl/vout_helper.c
@@ -270,8 +270,7 @@ static void getViewpointMatrixes(vout_display_opengl_t *vgl,
     if (projection_mode == PROJECTION_MODE_EQUIRECTANGULAR
         || projection_mode == PROJECTION_MODE_CUBEMAP_LAYOUT_STANDARD)
     {
-        float sar = (float) vgl->f_sar;
-        getProjectionMatrix(sar, vgl->f_fovy, prgm->var.ProjectionMatrix);
+        getProjectionMatrix(vgl->f_sar, vgl->f_fovy, prgm->var.ProjectionMatrix);
         getYRotMatrix(vgl->f_teta, prgm->var.YRotMatrix);
         getXRotMatrix(vgl->f_phi, prgm->var.XRotMatrix);
         getZRotMatrix(vgl->f_roll, prgm->var.ZRotMatrix);



More information about the vlc-commits mailing list