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:
parent
0bc8b0b33a
commit
13f53531e5
@ -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 });
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user