mirror of
https://github.com/microsoft/DirectXTex
synced 2024-09-19 23:29:54 +00:00
Fixed /analyze warning in d3dx12.h
This commit is contained in:
parent
63d671ee9b
commit
27b581cbf4
@ -2411,7 +2411,8 @@ inline HRESULT D3DX12SerializeVersionedRootSignature(
|
||||
{
|
||||
if (desc_1_1.pParameters[n].ParameterType == D3D12_ROOT_PARAMETER_TYPE_DESCRIPTOR_TABLE)
|
||||
{
|
||||
HeapFree(GetProcessHeap(), 0, reinterpret_cast<void*>(const_cast<D3D12_DESCRIPTOR_RANGE*>(pParameters_1_0[n].DescriptorTable.pDescriptorRanges)));
|
||||
auto pDescriptorRanges_1_0 = pParameters_1_0[n].DescriptorTable.pDescriptorRanges;
|
||||
HeapFree(GetProcessHeap(), 0, reinterpret_cast<void*>(const_cast<D3D12_DESCRIPTOR_RANGE*>(pDescriptorRanges_1_0)));
|
||||
}
|
||||
}
|
||||
HeapFree(GetProcessHeap(), 0, pParameters);
|
||||
|
Loading…
Reference in New Issue
Block a user