mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-14 09:50:06 +00:00
Use valid serialised array count during read. Fixes crash in ClearView
This commit is contained in:
1 parent
fae56e453e
commit
4b572d4d3c
1 file changed
+1
-1
@@ -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