[vlc-commits] opengl: ios: use vout_display_opengl_Viewport

Thomas Guillem git at videolan.org
Wed Dec 6 16:34:25 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Dec  6 14:23:56 2017 +0100| [1eee78fa78086bdf40faa3bb516ce5c2dcabc5ac] | committer: Thomas Guillem

opengl: ios: use vout_display_opengl_Viewport

Refs #19093

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

 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