libs/vkd3d: Return E_INVALIDARG in d3d12_resource_Map() for textures.

This commit is contained in:
Józef Kucia 2016-10-17 14:24:22 +02:00
parent af091ecc73
commit 6b681a4037

View File

@ -462,8 +462,9 @@ static HRESULT STDMETHODCALLTYPE d3d12_resource_Map(ID3D12Resource *iface, UINT
if (resource->desc.Dimension != D3D12_RESOURCE_DIMENSION_BUFFER) if (resource->desc.Dimension != D3D12_RESOURCE_DIMENSION_BUFFER)
{ {
/* Textures seem to be mappable only on UMA adapters. */
FIXME("Not implemented for textures.\n"); FIXME("Not implemented for textures.\n");
return E_NOTIMPL; return E_INVALIDARG;
} }
if (!resource->vk_memory) if (!resource->vk_memory)