summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/utils.c
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.xyz>2017-08-12 20:07:03 +0200
committerNiklas Haas <git@haasn.xyz>2017-08-18 00:19:14 +0200
commit9ca5a2a5d839476d8a597fcc124cce41279928bc (patch)
tree6fcc70bcd5c219bdaeba3021b5a65ace014a6ce3 /video/out/opengl/utils.c
parent82093764684a4c11f9ad0d8c12bf2e34758ea0fe (diff)
downloadmpv-9ca5a2a5d839476d8a597fcc124cce41279928bc.tar.bz2
mpv-9ca5a2a5d839476d8a597fcc124cce41279928bc.tar.xz
vo_opengl: make blitting an explicit capability
Instead of merging it into render_dst. This is better for vulkan, because blitting in vulkan both does not require a FBO *and* requires a different image layout. Also less "hacky" for OpenGL, since now the weird blit=FBO requirement is an implementation detail of ra_gl
Diffstat (limited to 'video/out/opengl/utils.c')
-rw-r--r--video/out/opengl/utils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/opengl/utils.c b/video/out/opengl/utils.c
index 64421b73a8..522ce04c0a 100644
--- a/video/out/opengl/utils.c
+++ b/video/out/opengl/utils.c
@@ -89,6 +89,7 @@ bool fbotex_change(struct fbotex *fbo, struct ra *ra, struct mp_log *log,
.src_linear = true,
.render_src = true,
.render_dst = true,
+ .blit_src = true,
};
fbo->tex = ra_tex_create(fbo->ra, &params);