Skip to content

Commit

Permalink
avfilter/vsrc_ddagrab: clear all flags of buffer texture
Browse files Browse the repository at this point in the history
  • Loading branch information
BtbN committed Mar 15, 2024
1 parent 4ce6c74 commit 7ba7f1a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libavfilter/vsrc_ddagrab.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 7ba7f1a

Please sign in to comment.