mirror of https://github.com/doitsujin/dxvk
[dxvk] Fix offset in DxvkBuffer::subSlice
This commit is contained in:
parent
f88658d88c
commit
d8e31f221f
|
@ -382,7 +382,7 @@ namespace dxvk {
|
|||
* \returns The sub slice object
|
||||
*/
|
||||
DxvkBufferSlice subSlice(VkDeviceSize offset, VkDeviceSize length) const {
|
||||
return DxvkBufferSlice(m_buffer, offset, length);
|
||||
return DxvkBufferSlice(m_buffer, m_offset + offset, length);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue