diff --git a/src/d3d11/d3d11_context_imm.cpp b/src/d3d11/d3d11_context_imm.cpp index d164f4c03..461dad65b 100644 --- a/src/d3d11/d3d11_context_imm.cpp +++ b/src/d3d11/d3d11_context_imm.cpp @@ -334,6 +334,9 @@ namespace dxvk { if (unlikely(Subresource >= pResource->CountSubresources())) return E_INVALIDARG; + if (unlikely(pResource->GetMapType(Subresource) != D3D11_MAP(~0u))) + return E_OUTOFMEMORY; + pResource->SetMapType(Subresource, MapType); VkFormat packedFormat = m_parent->LookupPackedFormat(