1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-31 14:52:11 +01:00

[dxvk] Fix undefined behaviour move

This commit is contained in:
Philip Rebohle 2024-09-30 17:44:18 +02:00
parent a5e3f29074
commit 90b036f550

View File

@ -443,7 +443,9 @@ namespace dxvk {
m_length(rangeLength) { }
explicit DxvkBufferSlice(Rc<DxvkBuffer> buffer)
: DxvkBufferSlice(std::move(buffer), 0, buffer->info().size) { }
: m_buffer(std::move(buffer)),
m_offset(0),
m_length(m_buffer->info().size) { }
explicit DxvkBufferSlice(const Rc<DxvkBufferView>& view)
: DxvkBufferSlice(view->buffer(), view->info().offset, view->info().size) { }