[vlc-commits] opengl: caopengllayer: use vout_display_opengl_Viewport
    Thomas Guillem 
    git at videolan.org
       
    Wed Dec  6 16:34:26 CET 2017
    
    
  
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Dec  6 14:24:08 2017 +0100| [e22818c517c52c77d030b1829b2f1dfdcdb4192a] | committer: Thomas Guillem
opengl: caopengllayer: use vout_display_opengl_Viewport
Refs #19093
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e22818c517c52c77d030b1829b2f1dfdcdb4192a
---
 modules/video_output/caopengllayer.m | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/modules/video_output/caopengllayer.m b/modules/video_output/caopengllayer.m
index 829c8da2ad..982ed830a9 100644
--- a/modules/video_output/caopengllayer.m
+++ b/modules/video_output/caopengllayer.m
@@ -489,7 +489,9 @@ static void *OurGetProcAddress (vlc_gl_t *gl, const char *name)
     CGRect bounds = [self visibleRect];
 
     // x / y are top left corner, but we need the lower left one
-    glViewport (sys->place.x, bounds.size.height - (sys->place.y + sys->place.height), sys->place.width, sys->place.height);
+    vout_display_opengl_Viewport(sys->vgl, sys->place.x,
+                                 bounds.size.height - (sys->place.y + sys->place.height),
+                                 sys->place.width, sys->place.height);
 
     // flush is also done by this method, no need to call super
     vout_display_opengl_Display (sys->vgl, &_voutDisplay->source);
    
    
More information about the vlc-commits
mailing list