From a6074a3375628efc6fdf8016439480a575a38bf8 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 16 Jun 2016 17:29:53 +0200 Subject: vf_d3d11vpp: flush device context only when using shared textures Reduces interference with pass-through case, where this is not needed. --- video/filter/vf_d3d11vpp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'video/filter') 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: -- cgit v1.2.3