Commit 0ea25a74 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

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

parent 3b8a5529
...@@ -259,7 +259,7 @@ static int Control (vout_display_t *vd, int query, va_list ap) ...@@ -259,7 +259,7 @@ static int Control (vout_display_t *vd, int query, va_list ap)
vout_display_PlacePicture (&place, source, cfg, false); vout_display_PlacePicture (&place, source, cfg, false);
vlc_gl_MakeCurrent (sys->gl); 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); vlc_gl_ReleaseCurrent (sys->gl);
return VLC_SUCCESS; return VLC_SUCCESS;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment