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:
parent
a5e3f29074
commit
90b036f550
@ -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) { }
|
||||
|
Loading…
x
Reference in New Issue
Block a user