1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-29 17:52:18 +01:00

[d3d9] Fix initial mapping of images written by GPU

This commit is contained in:
Joshua Ashton 2021-08-11 12:14:17 +01:00
parent 679d703efc
commit 5f4f4d57df
No known key found for this signature in database
GPG Key ID: C85A08669126BE8D

View File

@ -4183,7 +4183,7 @@ namespace dxvk {
else {
physSlice = mappedBuffer->getSliceHandle();
if (!alloced) {
if (!alloced || wasWrittenByGPU) {
if (unlikely(wasWrittenByGPU)) {
Rc<DxvkImage> resourceImage = pResource->GetImage();