vkd3d: Allow map of texture as long as ppData is NULL.

Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
This commit is contained in:
Hans-Kristian Arntzen 2021-09-15 14:25:51 +02:00
parent 9c0fa91ca5
commit 961fef84de
1 changed files with 4 additions and 3 deletions

View File

@ -1477,10 +1477,11 @@ static HRESULT STDMETHODCALLTYPE d3d12_resource_Map(d3d12_resource_iface *iface,
return E_INVALIDARG;
}
if (d3d12_resource_is_texture(resource))
if (d3d12_resource_is_texture(resource) && data)
{
/* Textures seem to be mappable only on UMA adapters. */
FIXME("Not implemented for textures.\n");
/* Cannot get pointer to mapped texture.
* It is only possible to make UNKNOWN textures host visible,
* and only NULL map + Write/ReadSubresource is allowed in this scenario. */
return E_INVALIDARG;
}