summaryrefslogtreecommitdiffstats
path: root/video/filter
diff options
context:
space:
mode:
Diffstat (limited to 'video/filter')
-rw-r--r--video/filter/vf_d3d11vpp.c3
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: