Variable shadowing fixes

This commit is contained in:
baldurk
2016-10-31 01:20:02 +01:00
parent 090e4e5e9a
commit 2d7c55cbe9
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -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())
{