1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-02 01:24:11 +01:00

Revert "[d3d11] Return error when mapping an already mapped image"

This reverts commit 1cc531eaf8.

Even though an FFXIV apitrace clearly indicates that mapping an
already mapped subresource returns E_OUTOFMEMORY in that game,
this doesn't always seem to be correct behaviour.

Fixes #1148, #1149.
This commit is contained in:
Philip Rebohle 2019-08-03 19:08:22 +02:00
parent 02d92210ad
commit 140a2c1017

View File

@ -340,9 +340,6 @@ 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(