[vlc-commits] xcb/glx: correct viewport position (fixes #10907)

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:22 2014 +0200| [0ea25a747dc3167fb242f1051826d17ac4d59822] | committer: Rémi Denis-Courmont

xcb/glx: correct viewport position (fixes #10907)

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

 modules/video_output/xcb/glx.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_output/xcb/glx.c b/modules/video_output/xcb/glx.c
index 60208c3..b4a5024 100644
--- a/modules/video_output/xcb/glx.c
+++ b/modules/video_output/xcb/glx.c
@@ -259,7 +259,7 @@ static int Control (vout_display_t *vd, int query, va_list ap)
         vout_display_PlacePicture (&place, source, 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