Commit fad8b0b4 authored by Thomas Guillem's avatar Thomas Guillem

opengl: add vout_display_opengl_Viewport

In order to use glViewport from the vgl vtable.

Refs #19093
parent a373a92b
......@@ -1076,6 +1076,12 @@ void vout_display_opengl_SetWindowAspectRatio(vout_display_opengl_t *vgl,
getViewpointMatrixes(vgl, vgl->fmt.projection_mode, vgl->prgm);
}
void vout_display_opengl_Viewport(vout_display_opengl_t *vgl, int x, int y,
unsigned width, unsigned height)
{
vgl->vt.Viewport(x, y, width, height);
}
picture_pool_t *vout_display_opengl_GetPool(vout_display_opengl_t *vgl, unsigned requested_count)
{
GL_ASSERT_NOERROR();
......
......@@ -96,6 +96,9 @@ int vout_display_opengl_SetViewpoint(vout_display_opengl_t *vgl, const vlc_viewp
void vout_display_opengl_SetWindowAspectRatio(vout_display_opengl_t *vgl,
float f_sar);
void vout_display_opengl_Viewport(vout_display_opengl_t *vgl, int x, int y,
unsigned width, unsigned height);
int vout_display_opengl_Prepare(vout_display_opengl_t *vgl,
picture_t *picture, subpicture_t *subpicture);
int vout_display_opengl_Display(vout_display_opengl_t *vgl,
......
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