mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-22 21:55:52 +00:00
Use valid serialised array count during read. Fixes crash in ClearView
This commit is contained in:
@@ -437,7 +437,7 @@ bool WrappedID3D11DeviceContext::Serialise_ClearView(ID3D11View *pView, const FL
|
||||
m_pSerialiser->SerialisePODArray<4>("ColorRGBA", Color);
|
||||
|
||||
SERIALISE_ELEMENT(uint32_t, numRects, NumRects);
|
||||
SERIALISE_ELEMENT_ARR(D3D11_RECT, rects, pRect, NumRects);
|
||||
SERIALISE_ELEMENT_ARR(D3D11_RECT, rects, pRect, numRects);
|
||||
|
||||
if(m_State <= EXECUTING && m_pDevice->GetResourceManager()->HasLiveResource(View))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user