mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-11 10:24:10 +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:
parent
02d92210ad
commit
140a2c1017
@ -340,9 +340,6 @@ namespace dxvk {
|
|||||||
if (unlikely(Subresource >= pResource->CountSubresources()))
|
if (unlikely(Subresource >= pResource->CountSubresources()))
|
||||||
return E_INVALIDARG;
|
return E_INVALIDARG;
|
||||||
|
|
||||||
if (unlikely(pResource->GetMapType(Subresource) != D3D11_MAP(~0u)))
|
|
||||||
return E_OUTOFMEMORY;
|
|
||||||
|
|
||||||
pResource->SetMapType(Subresource, MapType);
|
pResource->SetMapType(Subresource, MapType);
|
||||||
|
|
||||||
VkFormat packedFormat = m_parent->LookupPackedFormat(
|
VkFormat packedFormat = m_parent->LookupPackedFormat(
|
||||||
|
Loading…
Reference in New Issue
Block a user