diff --git a/src/d3d9/d3d9_device.cpp b/src/d3d9/d3d9_device.cpp index 6c0f802a..91b61a39 100644 --- a/src/d3d9/d3d9_device.cpp +++ b/src/d3d9/d3d9_device.cpp @@ -4536,9 +4536,12 @@ namespace dxvk { if (pResource->GetImage() != nullptr) { Rc resourceImage = pResource->GetImage(); - Rc mappedImage = resourceImage->info().sampleCount != 1 - ? pResource->GetResolveImage() - : std::move(resourceImage); + Rc mappedImage; + if (resourceImage->info().sampleCount != 1) { + mappedImage = pResource->GetResolveImage(); + } else { + mappedImage = std::move(resourceImage); + } // When using any map mode which requires the image contents // to be preserved, and if the GPU has write access to the