Commit 30a892d1 authored by Thomas Guillem's avatar Thomas Guillem

opengl: macosx: use vout_display_opengl_Viewport

Refs #19093
parent efdccecd
......@@ -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;
......
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