[vlc-commits] opengl: win32: use vout_display_opengl_Viewport
Thomas Guillem
git at videolan.org
Thu Dec 7 09:28:07 CET 2017
vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Dec 6 14:23:12 2017 +0100| [41e0d096d517ab468ed9fc2753d6ae8d55847cd0] | committer: Thomas Guillem
opengl: win32: use vout_display_opengl_Viewport
Refs #19093
(cherry picked from commit 55c377dd23728f18e9a1c8045bdcfa7f232177a5)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=41e0d096d517ab468ed9fc2753d6ae8d55847cd0
---
modules/video_output/win32/glwin32.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/video_output/win32/glwin32.c b/modules/video_output/win32/glwin32.c
index 9879f44336..47c4d6d0d3 100644
--- a/modules/video_output/win32/glwin32.c
+++ b/modules/video_output/win32/glwin32.c
@@ -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);
}
More information about the vlc-commits
mailing list