summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/utils.c
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.xyz>2017-08-26 05:33:00 +0200
committerNiklas Haas <git@haasn.xyz>2017-08-27 14:36:00 +0200
commit45bae90f4d98c64f01ec2fe419a6aa6c068331b2 (patch)
treefeffd338887dd828212b64e3ab79f4c4bde256d5 /video/out/opengl/utils.c
parentf40717a66430c238fbe3fa28fc39a88d804bdc9c (diff)
downloadmpv-45bae90f4d98c64f01ec2fe419a6aa6c068331b2.tar.bz2
mpv-45bae90f4d98c64f01ec2fe419a6aa6c068331b2.tar.xz
vo_opengl: be explicit about IMG_RW
Both vulkan and opengl distinguish between rendering to an image and using an image as a storage attachment. So make this an explicit capability instead of lumping it in with render_dst. (That way we could support, for example, using an image as a storage attachment without requiring a framebuffer) The real reason for this change is that you can directly use the output FBO as a storage attachment on vulkan but you can't on opengl, which makes this param structly separate from render_dst.
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 e7fce62662..cdd8903bc5 100644
--- a/video/out/opengl/utils.c
+++ b/video/out/opengl/utils.c
@@ -174,6 +174,7 @@ bool fbotex_change(struct fbotex *fbo, struct ra *ra, struct mp_log *log,
.src_linear = true,
.render_src = true,
.render_dst = true,
+ .storage_dst = true,
.blit_src = true,
};