[vlc-commits] vout: opengl: remove duplicate vout_display_opengl_SetViewpoint

Thomas Guillem git at videolan.org
Wed Nov 16 17:50:45 CET 2016


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Nov 16 17:48:22 2016 +0100| [066d30b918ac9c084dc2725d9f4c483fd4f581b0] | committer: Thomas Guillem

vout: opengl: remove duplicate vout_display_opengl_SetViewpoint

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

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

diff --git a/modules/video_output/opengl.c b/modules/video_output/opengl.c
index 8efe7c9..618a556 100644
--- a/modules/video_output/opengl.c
+++ b/modules/video_output/opengl.c
@@ -696,17 +696,6 @@ vout_display_opengl_t *vout_display_opengl_New(video_format_t *fmt,
 #endif
     }
 
-    if (vgl->fmt.projection_mode == PROJECTION_MODE_EQUIRECTANGULAR
-        || vgl->fmt.projection_mode == PROJECTION_MODE_CUBEMAP_LAYOUT_STANDARD)
-    {
-        vout_display_opengl_SetViewpoint(vgl, &(vlc_viewpoint_t) {
-            .yaw = vgl->fmt.f_pose_yaw_degrees,
-            .pitch = vgl->fmt.f_pose_pitch_degrees,
-            .roll = vgl->fmt.f_pose_roll_degrees,
-            .fov = vgl->fmt.f_pose_fov_degrees,
-            .zoom = 0.f } );
-    }
-
     /* */
     glDisable(GL_BLEND);
     glDisable(GL_DEPTH_TEST);



More information about the vlc-commits mailing list