1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 20:52:10 +01:00

[d3d11] Return error when mapping an already mapped image

Final Fantasy XIV does this. Should avoid some unnecessary work.
This commit is contained in:
Philip Rebohle 2019-07-05 10:25:06 +02:00
parent 2f64f5b4e7
commit 1cc531eaf8
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -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(