[vlc-commits] opengl: fix the teta and phi initial values
Steve Lhomme
git at videolan.org
Thu Nov 10 11:13:21 CET 2016
vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Thu Nov 10 10:42:54 2016 +0100| [5b85d8ce06e440ab5694552484d4556d13afc281] | committer: Thomas Guillem
opengl: fix the teta and phi initial values
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5b85d8ce06e440ab5694552484d4556d13afc281
---
modules/video_output/opengl.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/video_output/opengl.c b/modules/video_output/opengl.c
index 49a7e0f..566f18a 100644
--- a/modules/video_output/opengl.c
+++ b/modules/video_output/opengl.c
@@ -691,8 +691,8 @@ vout_display_opengl_t *vout_display_opengl_New(video_format_t *fmt,
if (vgl->fmt.projection_mode == PROJECTION_MODE_EQUIRECTANGULAR
|| vgl->fmt.projection_mode == PROJECTION_MODE_CUBEMAP_LAYOUT_STANDARD)
{
- vgl->f_teta = vgl->fmt.f_pose_roll_degrees / 180. * (float) M_PI;
- vgl->f_phi = vgl->fmt.f_pose_yaw_degrees / 180. * (float) M_PI;
+ vgl->f_teta = vgl->fmt.f_pose_yaw_degrees / 180. * (float) M_PI;
+ vgl->f_phi = vgl->fmt.f_pose_pitch_degrees / 180. * (float) M_PI;
vgl->f_teta -= (float) M_PI/2;
}
More information about the vlc-commits
mailing list