[vlc-commits] opengl: caopengllayer: use vout_display_opengl_Viewport
Thomas Guillem
git at videolan.org
Thu Dec 7 09:28:12 CET 2017
vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Dec 6 14:24:08 2017 +0100| [5c595d9cb110dd79e16c99a091cbb7d6e4402863] | committer: Thomas Guillem
opengl: caopengllayer: use vout_display_opengl_Viewport
Refs #19093
(cherry picked from commit e22818c517c52c77d030b1829b2f1dfdcdb4192a)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=5c595d9cb110dd79e16c99a091cbb7d6e4402863
---
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