[vlc-devel] [PATCH 04/15] opengl: no need to restrict the radian values
Steve Lhomme
robux4 at videolabs.io
Fri Nov 4 18:08:47 CET 2016
---
modules/video_output/opengl.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/modules/video_output/opengl.c b/modules/video_output/opengl.c
index aee96bd..3adc31a 100644
--- a/modules/video_output/opengl.c
+++ b/modules/video_output/opengl.c
@@ -784,14 +784,8 @@ 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)
{
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.10.1
More information about the vlc-devel
mailing list