[vlc-commits] opengl: win32: use vout_display_opengl_Viewport

Thomas Guillem git at videolan.org
Wed Dec 6 16:34:22 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Dec  6 14:23:12 2017 +0100| [55c377dd23728f18e9a1c8045bdcfa7f232177a5] | committer: Thomas Guillem

opengl: win32: use vout_display_opengl_Viewport

Refs #19093

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

 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