diff options
author | wm4 <wm4@nowhere> | 2017-03-20 13:31:28 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-03-20 13:31:28 +0100 |
commit | 8fb9cc253457a58c39013906643e8dc92171adbe (patch) | |
tree | cd78041d0ea61c580c628d15eb90d5ae2433b8b8 /options | |
parent | 03fe50651baeb506ca8b6fb2b597598a096be2f6 (diff) | |
download | mpv-8fb9cc253457a58c39013906643e8dc92171adbe.tar.bz2 mpv-8fb9cc253457a58c39013906643e8dc92171adbe.tar.xz |
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.
Diffstat (limited to 'options')
0 files changed, 0 insertions, 0 deletions