[vlc-commits] opengl: correct view port position

Rémi Denis-Courmont git at videolan.org
Sun Mar 9 22:25:45 CET 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Mar  9 23:25:09 2014 +0200| [3b8a55295de1207fe92824fd58cc590284f44715] | committer: Rémi Denis-Courmont

opengl: correct view port position

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

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

diff --git a/modules/video_output/gl.c b/modules/video_output/gl.c
index 11d8c4d..f3c4352 100644
--- a/modules/video_output/gl.c
+++ b/modules/video_output/gl.c
@@ -279,7 +279,7 @@ static int Control (vout_display_t *vd, int query, va_list ap)
 
         vout_display_PlacePicture (&place, src, cfg, false);
         vlc_gl_MakeCurrent (sys->gl);
-        glViewport (0, 0, place.width, place.height);
+        glViewport (place.x, place.y, place.width, place.height);
         vlc_gl_ReleaseCurrent (sys->gl);
         return VLC_SUCCESS;
       }
@@ -293,7 +293,7 @@ static int Control (vout_display_t *vd, int query, va_list ap)
 
         vout_display_PlacePicture (&place, src, cfg, false);
         vlc_gl_MakeCurrent (sys->gl);
-        glViewport (0, 0, place.width, place.height);
+        glViewport (place.x, place.y, place.width, place.height);
         vlc_gl_ReleaseCurrent (sys->gl);
         return VLC_SUCCESS;
       }



More information about the vlc-commits mailing list