[vlc-commits] opengl: ios: use vout_display_opengl_Viewport
Thomas Guillem
git at videolan.org
Thu Dec 7 09:28:11 CET 2017
vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Dec 6 14:23:56 2017 +0100| [b963ac95c421d2c3890e50a8745d8dc2e0766f69] | committer: Thomas Guillem
opengl: ios: use vout_display_opengl_Viewport
Refs #19093
(cherry picked from commit 1eee78fa78086bdf40faa3bb516ce5c2dcabc5ac)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=b963ac95c421d2c3890e50a8745d8dc2e0766f69
---
modules/video_output/ios.m | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/modules/video_output/ios.m b/modules/video_output/ios.m
index 67898521ab..c7606c2f13 100644
--- a/modules/video_output/ios.m
+++ b/modules/video_output/ios.m
@@ -332,7 +332,9 @@ static int Control(vout_display_t *vd, int query, va_list ap)
// x / y are top left corner, but we need the lower left one
if (query != VOUT_DISPLAY_CHANGE_DISPLAY_SIZE)
- glViewport(place.x, cfg_tmp.display.height - (place.y + place.height), place.width, place.height);
+ vout_display_opengl_Viewport(sys->vgl, place.x,
+ cfg_tmp.display.height - (place.y + place.height),
+ place.width, place.height);
vlc_gl_ReleaseCurrent(sys->gl);
}
return VLC_SUCCESS;
More information about the vlc-commits
mailing list