Commit efdccecd authored by Thomas Guillem's avatar Thomas Guillem

opengl: use vout_display_opengl_Viewport

Refs #19093
parent 55c377dd
......@@ -257,7 +257,7 @@ static int Control (vout_display_t *vd, int query, va_list ap)
if (vlc_gl_MakeCurrent (sys->gl) != VLC_SUCCESS)
return VLC_EGENERIC;
vout_display_opengl_SetWindowAspectRatio(sys->vgl, (float)place.width / place.height);
glViewport (place.x, place.y, place.width, place.height);
vout_display_opengl_Viewport(sys->vgl, place.x, place.y, place.width, place.height);
vlc_gl_ReleaseCurrent (sys->gl);
return VLC_SUCCESS;
}
......@@ -272,7 +272,7 @@ static int Control (vout_display_t *vd, int query, va_list ap)
if (vlc_gl_MakeCurrent (sys->gl) != VLC_SUCCESS)
return VLC_EGENERIC;
vout_display_opengl_SetWindowAspectRatio(sys->vgl, (float)place.width / place.height);
glViewport (place.x, place.y, place.width, place.height);
vout_display_opengl_Viewport(sys->vgl, place.x, place.y, 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