aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vsrc_ddagrab.c
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2024-03-15 23:45:33 +0100
committerTimo Rothenpieler <timo@rothenpieler.org>2024-03-16 00:44:58 +0100
commitb47abd5737eed9304fc808bc7a1043c55b21263f (patch)
treef6617539766a0180dcbdbfbed3552c436a6e370e /libavfilter/vsrc_ddagrab.c
parentcfa694d8112799a75bb7a18aefd5064a6b66000b (diff)
downloadffmpeg-b47abd5737eed9304fc808bc7a1043c55b21263f.tar.gz
avfilter/vsrc_ddagrab: clear all flags of buffer texture
One some system, one some displays, for unknown reasons, these contain rather bad flags that cause all kinds of weird behaviour.
Diffstat (limited to 'libavfilter/vsrc_ddagrab.c')
-rw-r--r--libavfilter/vsrc_ddagrab.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavfilter/vsrc_ddagrab.c b/libavfilter/vsrc_ddagrab.c
index 070b1eda37..018f46ed94 100644
--- a/libavfilter/vsrc_ddagrab.c
+++ b/libavfilter/vsrc_ddagrab.c
@@ -746,6 +746,9 @@ static int next_frame_internal(AVFilterContext *avctx, ID3D11Texture2D **desktop
D3D11_TEXTURE2D_DESC desc;
ID3D11Texture2D_GetDesc(*desktop_texture, &desc);
desc.Usage = D3D11_USAGE_DEFAULT;
+ desc.BindFlags = 0;
+ desc.CPUAccessFlags = 0;
+ desc.MiscFlags = 0;
hr = ID3D11Device_CreateTexture2D(dda->device_hwctx->device, &desc, NULL, &dda->buffer_texture);
if (FAILED(hr)) {