1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-10 00:49:32 +00:00
mpv/video/out
wm4 8fb9cc2534 vo_opengl: read framebuffer depth from actual FBO used for rendering
In some cases, such as when using the libmpv opengl-cb API, or with
certain vo_opengl backends, the main framebuffer is never accessed.
Instead, rendering is done to a FBO that acts as back buffer. This meant
an incorrect/broken bit depth could be used for dithering.

Change it to read the framebuffer depth lazily on the first render call.

Also move the main FBO field out of the GL struct to MPGLContext,
because the renderer's init function does not need to access it anymore.
2017-03-20 13:31:28 +01:00
..
cocoa cocoa: set background of the title bar from black to white 2017-03-09 18:02:36 +01:00
opengl vo_opengl: read framebuffer depth from actual FBO used for rendering 2017-03-20 13:31:28 +01:00
wayland
win32 displayconfig: treat a refresh rate of 1 as invalid 2016-09-18 22:15:25 +10:00
aspect.c aspect: use nominal width instead of actual width for video-unscaled 2016-09-22 21:24:56 +02:00
aspect.h
bitmap_packer.c bitmap_packer: remove some unused functions 2016-07-01 20:29:45 +02:00
bitmap_packer.h bitmap_packer: remove some unused functions 2016-07-01 20:29:45 +02:00
cocoa_common.h
cocoa_common.m cocoa: fix autofit options on HiDPI resolutions without HiDPI scaling 2017-03-09 17:57:07 +01:00
d3d_shader_420p.h
d3d_shader_nv12.h
d3d_shader_yuv.hlsl
dither.c
dither.h
drm_common.c drm: include <poll.h> instead of <sys/poll.h> 2017-01-09 16:21:28 +01:00
drm_common.h vo_drm: change CLI options + refactors 2016-10-07 00:22:23 +02:00
filter_kernels.c filter_kernels: Keep f.radius in terms of dest/filter coords. 2017-03-06 03:31:40 +00:00
filter_kernels.h filter_kernels: Keep f.radius in terms of dest/filter coords. 2017-03-06 03:31:40 +00:00
vo_caca.c
vo_direct3d.c options: remove deprecated sub-option handling for --vo and --ao 2016-11-25 21:17:25 +01:00
vo_drm.c vo_drm: remove 2 redundant include statements 2017-01-09 16:23:27 +01:00
vo_image.c options: add M_OPT_FILE to some more file options 2017-03-06 15:41:06 +01:00
vo_lavc.c Remove compatibility things 2016-12-07 19:53:11 +01:00
vo_null.c options: remove deprecated sub-option handling for --vo and --ao 2016-11-25 21:17:25 +01:00
vo_opengl_cb.c vo: fix subtleties in the redrawing logic 2017-02-21 15:39:44 +01:00
vo_opengl.c vo_opengl: read framebuffer depth from actual FBO used for rendering 2017-03-20 13:31:28 +01:00
vo_rpi.c vo_rpi: partially undeprecate 2016-12-08 11:00:14 +01:00
vo_sdl.c options: remove deprecated sub-option handling for --vo and --ao 2016-11-25 21:17:25 +01:00
vo_tct.c vo_tct: check ioctl result 2017-02-20 14:19:57 +01:00
vo_vaapi.c vaapi: remove central lock around vaapi API calls 2017-01-28 18:27:30 +01:00
vo_vdpau.c options: remove deprecated sub-option handling for --vo and --ao 2016-11-25 21:17:25 +01:00
vo_wayland.c options: remove deprecated sub-option handling for --vo and --ao 2016-11-25 21:17:25 +01:00
vo_x11.c vo_x11: fix some ifdeffery 2016-09-13 18:26:06 +02:00
vo_xv.c options: remove deprecated sub-option handling for --vo and --ao 2016-11-25 21:17:25 +01:00
vo.c vo: fix subtleties in the redrawing logic 2017-02-21 15:39:44 +01:00
vo.h options: remove deprecated sub-option handling for --vo and --ao 2016-11-25 21:17:25 +01:00
w32_common.c win32: update the fullscreen state on restoring 2017-02-12 02:49:25 +11:00
w32_common.h
wayland_common.c wayland_common: organize and correctly map mouse buttons 2017-03-17 06:25:32 +00:00
wayland_common.h wayland_common: remove untested/unusable wayland dnd code 2016-07-30 00:02:39 +02:00
win_state.c x11: pseudo HiDPI scaling 2017-01-19 16:31:54 +01:00
win_state.h x11: pseudo HiDPI scaling 2017-01-19 16:31:54 +01:00
x11_common.c x11: pseudo HiDPI scaling 2017-01-19 16:31:54 +01:00
x11_common.h x11: pseudo HiDPI scaling 2017-01-19 16:31:54 +01:00
x11_icon.bin