1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 20:52:10 +01:00

[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

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