[d3d9] Update texture sequence number AFTER using it

This commit is contained in:
Robin Kertels 2022-03-12 02:43:50 +01:00 committed by Joshie
parent a6357a254d
commit 5f4fc56226
1 changed files with 2 additions and 2 deletions

View File

@ -4485,8 +4485,6 @@ namespace dxvk {
slice.mapPtr, srcData, extentBlockCount, formatInfo->elementSize,
pitch, pitch * srcTexLevelExtentBlockCount.height);
} else {
TrackTextureMappingBufferSequenceNumber(pSrcTexture, SrcSubresource);
copySrcSlice = DxvkBufferSlice(pSrcTexture->GetBuffer(SrcSubresource), copySrcOffset, srcSlice.length);
rowAlignment = pitch; // row alignment can act as the pitch parameter
}
@ -4505,6 +4503,8 @@ namespace dxvk {
cSrcSlice.buffer(), cSrcSlice.offset(),
cRowAlignment, 0);
});
TrackTextureMappingBufferSequenceNumber(pSrcTexture, SrcSubresource);
}
else {
const DxvkFormatInfo* formatInfo = imageFormatInfo(pDestTexture->GetFormatMapping().FormatColor);