[vlc-devel] [PATCH 08/14] opengl: no need to restrict the radian values

Steve Lhomme robux4 at videolabs.io
Fri Sep 30 18:36:19 CEST 2016


---
 modules/video_output/opengl.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/modules/video_output/opengl.c b/modules/video_output/opengl.c
index 9193a51..3adc31a 100644
--- a/modules/video_output/opengl.c
+++ b/modules/video_output/opengl.c
@@ -783,17 +783,9 @@ void vout_display_opengl_Delete(vout_display_opengl_t *vgl)
 
 void vout_display_opengl_SetViewpoint(vout_display_opengl_t *vgl, const vlc_viewpoint_t *p_viewpoint)
 {
-    const projection_mode proj_mode = vout_display_projection(vgl);
-
     vgl->f_teta = p_viewpoint->f_yaw - M_PI / 2;
-    if (vgl->f_teta < -M_PI)
-        vgl->f_teta = M_PI;
     vgl->f_phi = p_viewpoint->f_pitch;
-    if (vgl->f_phi < -M_PI / 2)
-        vgl->f_phi = -M_PI / 2;
     vgl->f_roll = p_viewpoint->f_roll;
-    if (vgl->f_roll < -M_PI / 2)
-        vgl->f_roll = -M_PI / 2;
 }
 
 picture_pool_t *vout_display_opengl_GetPool(vout_display_opengl_t *vgl, unsigned requested_count)
-- 
2.8.2



More information about the vlc-devel mailing list