mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14:52:11 +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:
parent
2f64f5b4e7
commit
1cc531eaf8
@ -334,6 +334,9 @@ 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…
x
Reference in New Issue
Block a user