From 5f4f4d57df54e3cd97efd51726cd6bea7bacf699 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Wed, 11 Aug 2021 12:14:17 +0100 Subject: [PATCH] [d3d9] Fix initial mapping of images written by GPU --- src/d3d9/d3d9_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d3d9/d3d9_device.cpp b/src/d3d9/d3d9_device.cpp index 541316c2..1899df88 100644 --- a/src/d3d9/d3d9_device.cpp +++ b/src/d3d9/d3d9_device.cpp @@ -4183,7 +4183,7 @@ namespace dxvk { else { physSlice = mappedBuffer->getSliceHandle(); - if (!alloced) { + if (!alloced || wasWrittenByGPU) { if (unlikely(wasWrittenByGPU)) { Rc resourceImage = pResource->GetImage();