Skip to content
Snippets Groups Projects
Commit 3836aa64 authored by Alexandre Janniaux's avatar Alexandre Janniaux Committed by Steve Lhomme
Browse files

opengl: display: remove now redundant SetViewpoint call

The vout_helper code will restore the viewpoint when the renderer is
created again, so the display doesn't need to restore it manually
anymore.
parent 5227011a
No related branches found
No related tags found
1 merge request!6357Add source projection override for video outputs
......@@ -116,12 +116,6 @@ UpdateFormat(vout_display_t *vd, const video_format_t *fmt,
/* Force to recompute the viewport on next picture */
sys->place_changed = true;
/* Restore viewpoint */
int vp_ret = vout_display_opengl_SetViewpoint(sys->vgl, &sys->viewpoint);
/* The viewpoint previously applied is necessarily valid */
assert(vp_ret == VLC_SUCCESS);
(void) vp_ret;
vlc_gl_ReleaseCurrent(sys->gl);
return ret;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment