From ec0ff35b9634f65ddbfcc3038a85b553cbf0049e Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Thu, 18 Jan 2018 19:09:21 +0100 Subject: [PATCH] [dxvk] Fixed offset in buffer to image copy --- src/dxvk/dxvk_context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dxvk/dxvk_context.cpp b/src/dxvk/dxvk_context.cpp index 32da2cdb..9593ff60 100644 --- a/src/dxvk/dxvk_context.cpp +++ b/src/dxvk/dxvk_context.cpp @@ -326,7 +326,7 @@ namespace dxvk { m_barriers.recordCommands(m_cmd); VkBufferImageCopy copyRegion; - copyRegion.bufferOffset = srcOffset; + copyRegion.bufferOffset = srcSlice.offset(); copyRegion.bufferRowLength = srcExtent.width; copyRegion.bufferImageHeight = srcExtent.height; copyRegion.imageSubresource = dstSubresource;