D3D12: Fixed buffer update source offset.

This commit is contained in:
Branimir Karadžić 2015-08-08 18:52:42 -07:00
parent b7f94dd1f3
commit f1b54919ec

View file

@ -2767,7 +2767,7 @@ data.NumQualityLevels = 0;
staging->Unmap(0, NULL);
D3D12_RESOURCE_STATES state = setState(_commandList, D3D12_RESOURCE_STATE_COPY_DEST);
_commandList->CopyBufferRegion(m_ptr, _offset, staging, _offset, _size);
_commandList->CopyBufferRegion(m_ptr, _offset, staging, 0, _size);
setState(_commandList, state);
s_renderD3D12->m_cmd.release(staging);