Commit 5c595d9c authored by Thomas Guillem's avatar Thomas Guillem

opengl: caopengllayer: use vout_display_opengl_Viewport

Refs #19093

(cherry picked from commit e22818c5)
Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent b963ac95
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment