Don't process DX12 maps that have an invalid/empty written range

This commit is contained in:
baldurk
2018-06-13 09:17:04 +01:00
parent abd67a7702
commit d79514f926
+1 -1
View File
@@ -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);
}