diff options
author | wm4 <wm4@nowhere> | 2016-06-16 17:29:53 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-06-16 17:29:53 +0200 |
commit | a6074a3375628efc6fdf8016439480a575a38bf8 (patch) | |
tree | 8eb2fd5b6b818fafef2f1ab9d0e023762d221ec2 /video | |
parent | 36f8d417028adb29a48b0c9e7727ed2a04cb569c (diff) | |
download | mpv-a6074a3375628efc6fdf8016439480a575a38bf8.tar.bz2 mpv-a6074a3375628efc6fdf8016439480a575a38bf8.tar.xz |
vf_d3d11vpp: flush device context only when using shared textures
Reduces interference with pass-through case, where this is not needed.
Diffstat (limited to 'video')
-rw-r--r-- | video/filter/vf_d3d11vpp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/video/filter/vf_d3d11vpp.c b/video/filter/vf_d3d11vpp.c index 63cbe471d4..a0aa0edae2 100644 --- a/video/filter/vf_d3d11vpp.c +++ b/video/filter/vf_d3d11vpp.c @@ -333,7 +333,8 @@ static int render(struct vf_instance *vf) // Make sure the texture is updated correctly on the shared context. // (I'm not sure if this is correct, though it won't harm.) - ID3D11DeviceContext_Flush(p->device_ctx); + if (p->out_shared) + ID3D11DeviceContext_Flush(p->device_ctx); res = 0; cleanup: |