From 6d83455a950b7cca30bc032f52ea937ce773733a Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 8 Jul 2016 19:34:24 +0200 Subject: vd_d3d11vpp: remove nonsensical flush call I made this call up because I sort of thought this makes senssssse. I'm now convinced that it does not, and even is actively harmful. I'm still quite in the dark how the DirectD 11 video API is supposed to work with synchronization, but at least for normal graphics this call would not make much sense. --- video/filter/vf_d3d11vpp.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/video/filter/vf_d3d11vpp.c b/video/filter/vf_d3d11vpp.c index 100400757e..6faf712a67 100644 --- a/video/filter/vf_d3d11vpp.c +++ b/video/filter/vf_d3d11vpp.c @@ -331,11 +331,6 @@ static int render(struct vf_instance *vf) goto cleanup; } - // Make sure the texture is updated correctly on the shared context. - // (I'm not sure if this is correct, though it won't harm.) - if (p->out_shared) - ID3D11DeviceContext_Flush(p->device_ctx); - res = 0; cleanup: if (in_view) -- cgit v1.2.3