1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-01 16:24:12 +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,
cDstLayers = dstSubresource,
cDstOffset = dstOffset,
cSrcOffset = srcByteOffset + slice.slice.offset(),
cCopyExtent = copyExtent
] (DxvkContext* ctx) {
ctx->copyBufferToImage(
cDstImage, cDstLayers, cDstOffset, cCopyExtent,
cSrcSlice.buffer(), cSrcSlice.offset() + cSrcOffset,
cSrcSlice.buffer(), cSrcSlice.offset(),
VkExtent2D { 0, 0 });
});