mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-07 14:35:48 +00:00
Fix broken re-use of resource shadow deferred ctx pointers. Closes #2023
This commit is contained in:
2 files changed
+7
No files matched your search
@@ -630,6 +630,8 @@ void WrappedID3D11DeviceContext::CleanupCapture()
|
||||
}
|
||||
}
|
||||
|
||||
m_MapResourceRecordAllocs.clear();
|
||||
|
||||
if(RenderDoc::Inst().GetCaptureOptions().captureAllCmdLists)
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -136,8 +136,13 @@ struct D3D11ResourceRecord : public ResourceRecord
|
||||
SCOPED_WRITELOCK(DeferredShadowLock);
|
||||
|
||||
for(size_t i = 0; i < DeferredShadow.size(); i++)
|
||||
{
|
||||
if(!DeferredShadow[i].used)
|
||||
{
|
||||
DeferredShadow[i].used = true;
|
||||
return i + 1;
|
||||
}
|
||||
}
|
||||
|
||||
ShadowPointerData data = {};
|
||||
data.used = true;
|
||||
|
||||
Reference in new issue
Block a user