mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-27 17:06:32 +00:00
Variable shadowing fixes
This commit is contained in:
@@ -2459,10 +2459,10 @@ void WrappedID3D11Device::ReleaseSwapchainResources(WrappedIDXGISwapChain4 *swap
|
||||
|
||||
{
|
||||
SCOPED_LOCK(WrappedID3DDeviceContextState::m_Lock);
|
||||
for(size_t i = 0; i < WrappedID3DDeviceContextState::m_List.size(); i++)
|
||||
for(size_t s = 0; s < WrappedID3DDeviceContextState::m_List.size(); s++)
|
||||
{
|
||||
WrappedID3DDeviceContextState::m_List[i]->state->UnbindIUnknownForWrite(range);
|
||||
WrappedID3DDeviceContextState::m_List[i]->state->UnbindIUnknownForRead(range, false, false);
|
||||
WrappedID3DDeviceContextState::m_List[s]->state->UnbindIUnknownForWrite(range);
|
||||
WrappedID3DDeviceContextState::m_List[s]->state->UnbindIUnknownForRead(range, false, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -447,12 +447,12 @@ void STDMETHODCALLTYPE WrappedID3D12CommandQueue::ExecuteCommandLists(
|
||||
std::vector<D3D12Descriptor> dynDescRefs;
|
||||
m_pDevice->GetDynamicDescriptorReferences(dynDescRefs);
|
||||
|
||||
for(size_t i = 0; i < dynDescRefs.size(); i++)
|
||||
for(size_t d = 0; d < dynDescRefs.size(); d++)
|
||||
{
|
||||
ResourceId id, id2;
|
||||
FrameRefType ref = eFrameRef_Read;
|
||||
|
||||
dynDescRefs[i].GetRefIDs(id, id2, ref);
|
||||
dynDescRefs[d].GetRefIDs(id, id2, ref);
|
||||
|
||||
if(id != ResourceId())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user