mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-24 23:46:41 +00:00
Don't process DX12 maps that have an invalid/empty written range
This commit is contained in:
@@ -895,7 +895,7 @@ void WrappedID3D12Device::Unmap(ID3D12Resource *Resource, UINT Subresource, byte
|
||||
if(pWrittenRange)
|
||||
range = *pWrittenRange;
|
||||
|
||||
if(capframe)
|
||||
if(capframe && range.End > range.Begin)
|
||||
MapDataWrite(Resource, Subresource, mapPtr, range);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user