mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[d3d9] Update texture sequence number AFTER using it
This commit is contained in:
parent
a6357a254d
commit
5f4fc56226
@ -4485,8 +4485,6 @@ namespace dxvk {
|
|||||||
slice.mapPtr, srcData, extentBlockCount, formatInfo->elementSize,
|
slice.mapPtr, srcData, extentBlockCount, formatInfo->elementSize,
|
||||||
pitch, pitch * srcTexLevelExtentBlockCount.height);
|
pitch, pitch * srcTexLevelExtentBlockCount.height);
|
||||||
} else {
|
} else {
|
||||||
TrackTextureMappingBufferSequenceNumber(pSrcTexture, SrcSubresource);
|
|
||||||
|
|
||||||
copySrcSlice = DxvkBufferSlice(pSrcTexture->GetBuffer(SrcSubresource), copySrcOffset, srcSlice.length);
|
copySrcSlice = DxvkBufferSlice(pSrcTexture->GetBuffer(SrcSubresource), copySrcOffset, srcSlice.length);
|
||||||
rowAlignment = pitch; // row alignment can act as the pitch parameter
|
rowAlignment = pitch; // row alignment can act as the pitch parameter
|
||||||
}
|
}
|
||||||
@ -4505,6 +4503,8 @@ namespace dxvk {
|
|||||||
cSrcSlice.buffer(), cSrcSlice.offset(),
|
cSrcSlice.buffer(), cSrcSlice.offset(),
|
||||||
cRowAlignment, 0);
|
cRowAlignment, 0);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
TrackTextureMappingBufferSequenceNumber(pSrcTexture, SrcSubresource);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
const DxvkFormatInfo* formatInfo = imageFormatInfo(pDestTexture->GetFormatMapping().FormatColor);
|
const DxvkFormatInfo* formatInfo = imageFormatInfo(pDestTexture->GetFormatMapping().FormatColor);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user