Skip to content

Commit

Permalink
Change to use UnwrapResource helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
rayfalling committed Jan 4, 2024
1 parent cde12d5 commit 846e079
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions renderdoc/driver/d3d11/d3d11_device2_wrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ void WrappedID3D11Device::GetResourceTiling(
if(m_pDevice2 == NULL)
return;

WrappedID3D11Texture2D1 *wrapped = (WrappedID3D11Texture2D1 *)pTiledResource;
m_pDevice2->GetResourceTiling(wrapped->GetReal(), pNumTilesForEntireResource, pPackedMipDesc,
m_pDevice2->GetResourceTiling(UnwrapResource(pTiledResource), pNumTilesForEntireResource, pPackedMipDesc,
pStandardTileShapeForNonPackedMips, pNumSubresourceTilings,
FirstSubresourceTilingToGet, pSubresourceTilingsForNonPackedMips);
}
Expand Down

0 comments on commit 846e079

Please sign in to comment.