mirror of https://github.com/mpv-player/mpv
Always set the viewport on entry. The way the viewport is tracked is a bit complicated in my opinion, and in fact it doesn't even reduce the number of GL calls. Setting it on entry is actually redundant if video covers the screen fully, because the handle_pass() unconditionally sets it anyway, but avoiding it would complicate the cases gl->Clear() is actually needed. Add a fbo argument to gl_video_render_frame(). This allows you to render into a FBO rather than the default framebuffer. It will be useful for providing an API to render on an external GL context. (If that will actually be added.) |
||
---|---|---|
.. | ||
cocoa | ||
wayland | ||
aspect.c | ||
aspect.h | ||
bitmap_packer.c | ||
bitmap_packer.h | ||
cocoa_common.h | ||
cocoa_common.m | ||
d3d_shader_yuv.h | ||
d3d_shader_yuv.hlsl | ||
dither.c | ||
dither.h | ||
filter_kernels.c | ||
filter_kernels.h | ||
gl_cocoa.c | ||
gl_common.c | ||
gl_common.h | ||
gl_header_fixes.h | ||
gl_hwdec_vaglx.c | ||
gl_hwdec_vda.c | ||
gl_hwdec_vdpau.c | ||
gl_lcms.c | ||
gl_lcms.h | ||
gl_osd.c | ||
gl_osd.h | ||
gl_video.c | ||
gl_video.h | ||
gl_video_shaders.glsl | ||
gl_w32.c | ||
gl_wayland.c | ||
gl_x11.c | ||
gl_x11egl.c | ||
pnm_loader.c | ||
pnm_loader.h | ||
vo.c | ||
vo.h | ||
vo_caca.c | ||
vo_direct3d.c | ||
vo_image.c | ||
vo_lavc.c | ||
vo_null.c | ||
vo_opengl.c | ||
vo_opengl_old.c | ||
vo_sdl.c | ||
vo_vaapi.c | ||
vo_vdpau.c | ||
vo_wayland.c | ||
vo_x11.c | ||
vo_xv.c | ||
w32_common.c | ||
w32_common.h | ||
wayland_common.c | ||
wayland_common.h | ||
win_state.c | ||
win_state.h | ||
x11_common.c | ||
x11_common.h | ||
x11_icon.bin |