Skip to content

Commit

Permalink
Revert "[d3d11] Return error when mapping an already mapped image"
Browse files Browse the repository at this point in the history
This reverts commit 1cc531e.

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.
  • Loading branch information
doitsujin committed Aug 3, 2019
1 parent 02d9221 commit 140a2c1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/d3d11/d3d11_context_imm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 140a2c1

Please sign in to comment.