1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-12 04:08:52 +01:00

[d3d9] Fix offset in UpdateSurface

This commit is contained in:
Robin Kertels 2021-04-22 20:30:21 +02:00 committed by Joshie
parent 0bc8b0b33a
commit 13f53531e5

View File

@ -705,12 +705,11 @@ namespace dxvk {
cSrcSlice = slice.slice, cSrcSlice = slice.slice,
cDstLayers = dstSubresource, cDstLayers = dstSubresource,
cDstOffset = dstOffset, cDstOffset = dstOffset,
cSrcOffset = srcByteOffset + slice.slice.offset(),
cCopyExtent = copyExtent cCopyExtent = copyExtent
] (DxvkContext* ctx) { ] (DxvkContext* ctx) {
ctx->copyBufferToImage( ctx->copyBufferToImage(
cDstImage, cDstLayers, cDstOffset, cCopyExtent, cDstImage, cDstLayers, cDstOffset, cCopyExtent,
cSrcSlice.buffer(), cSrcSlice.offset() + cSrcOffset, cSrcSlice.buffer(), cSrcSlice.offset(),
VkExtent2D { 0, 0 }); VkExtent2D { 0, 0 });
}); });