[vlc-commits] opengl: use vout_display_opengl_Viewport

Thomas Guillem git at videolan.org
Thu Dec 7 09:28:08 CET 2017


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Dec  6 14:23:23 2017 +0100| [26cbd0dc846231ca8597e509c34f920c4eff09ee] | committer: Thomas Guillem

opengl: use vout_display_opengl_Viewport

Refs #19093

(cherry picked from commit efdccecd67ad0eee639721d619dbb84770a8b684)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=26cbd0dc846231ca8597e509c34f920c4eff09ee
---

 modules/video_output/opengl/display.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/video_output/opengl/display.c b/modules/video_output/opengl/display.c
index 6929f322d0..2ecdd0caaa 100644
--- a/modules/video_output/opengl/display.c
+++ b/modules/video_output/opengl/display.c
@@ -257,7 +257,7 @@ static int Control (vout_display_t *vd, int query, va_list ap)
         if (vlc_gl_MakeCurrent (sys->gl) != VLC_SUCCESS)
             return VLC_EGENERIC;
         vout_display_opengl_SetWindowAspectRatio(sys->vgl, (float)place.width / place.height);
-        glViewport (place.x, place.y, place.width, place.height);
+        vout_display_opengl_Viewport(sys->vgl, place.x, place.y, place.width, place.height);
         vlc_gl_ReleaseCurrent (sys->gl);
         return VLC_SUCCESS;
       }
@@ -272,7 +272,7 @@ static int Control (vout_display_t *vd, int query, va_list ap)
         if (vlc_gl_MakeCurrent (sys->gl) != VLC_SUCCESS)
             return VLC_EGENERIC;
         vout_display_opengl_SetWindowAspectRatio(sys->vgl, (float)place.width / place.height);
-        glViewport (place.x, place.y, place.width, place.height);
+        vout_display_opengl_Viewport(sys->vgl, place.x, place.y, place.width, place.height);
         vlc_gl_ReleaseCurrent (sys->gl);
         return VLC_SUCCESS;
       }



More information about the vlc-commits mailing list