mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-11 10:24:10 +01:00
[d3d9] Use mapped slice when locking POOL_DEFAULT textures
Fixes an issue where the game would end up using the wrong buffer slice if it previously mapped the same texture with DISCARD. Fixes #2329
This commit is contained in:
parent
3e64e1b3f5
commit
01f633289b
@ -4187,7 +4187,7 @@ namespace dxvk {
|
||||
}
|
||||
}
|
||||
else {
|
||||
physSlice = mappedBuffer->getSliceHandle();
|
||||
physSlice = pResource->GetMappedSlice(Subresource);
|
||||
|
||||
if (!alloced || wasWrittenByGPU) {
|
||||
if (unlikely(wasWrittenByGPU)) {
|
||||
|
Loading…
Reference in New Issue
Block a user