Skip to content

Commit

Permalink
d3d11va: remove unneeded ID3D11Texture2D_GetDesc call
Browse files Browse the repository at this point in the history
  • Loading branch information
robUx4 committed Feb 26, 2021
1 parent 3c3536a commit 476a951
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions modules/codec/avcodec/d3d11va.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,6 @@ static struct d3d11va_pic_context *CreatePicContext(
ID3D11Resource *p_resource;
ID3D11ShaderResourceView_GetResource(renderSrc[0], &p_resource);

D3D11_TEXTURE2D_DESC txDesc;
ID3D11Texture2D_GetDesc((ID3D11Texture2D*)p_resource, &txDesc);

pic_ctx->ctx.picsys.slice_index = slice;
for (int i=0;i<DXGI_MAX_SHADER_VIEW; i++)
{
Expand Down

0 comments on commit 476a951

Please sign in to comment.