mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2025-02-17 20:31:57 -05:00
D3D12: Fixed buffer update source offset.
This commit is contained in:
parent
b7f94dd1f3
commit
f1b54919ec
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue