vout: opengl: remove duplicate vout_display_opengl_SetViewpoint
authorThomas Guillem <thomas@gllm.fr>
Wed, 16 Nov 2016 16:48:22 +0000 (17:48 +0100)
committerThomas Guillem <thomas@gllm.fr>
Wed, 16 Nov 2016 16:48:47 +0000 (17:48 +0100)
modules/video_output/opengl.c

index 8efe7c9..618a556 100644 (file)
@@ -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);