Commit 41e0d096 authored by Thomas Guillem's avatar Thomas Guillem

opengl: win32: use vout_display_opengl_Viewport

Refs #19093

(cherry picked from commit 55c377dd)
Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent 4bbcb092
......@@ -248,6 +248,6 @@ static void Manage (vout_display_t *vd)
if (vlc_gl_MakeCurrent (sys->gl) != VLC_SUCCESS)
return VLC_EGENERIC;
vout_display_opengl_SetWindowAspectRatio(sys->vgl, (float)width / height);
glViewport(0, 0, width, height);
vout_display_opengl_Viewport(sys->vgl, 0, 0, width, height);
vlc_gl_ReleaseCurrent (sys->gl);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment