[dxvk] Fix offset in DxvkBuffer::subSlice

This commit is contained in:
Philip Rebohle 2019-07-15 03:42:21 +02:00
parent f88658d88c
commit d8e31f221f
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
/**