[vlc-commits] opengl: macosx: use vout_display_opengl_Viewport

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


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

opengl: macosx: use vout_display_opengl_Viewport

Refs #19093

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

 modules/video_output/macosx.m | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/video_output/macosx.m b/modules/video_output/macosx.m
index b09b23a2c0..4fae00d4de 100644
--- a/modules/video_output/macosx.m
+++ b/modules/video_output/macosx.m
@@ -410,7 +410,9 @@ static int Control (vout_display_t *vd, int query, va_list ap)
                  This has the positive side effect that we avoid erratic sizing as we animate every resize. */
                 if (query != VOUT_DISPLAY_CHANGE_DISPLAY_SIZE)
                     // x / y are top left corner, but we need the lower left one
-                    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