From 6b681a40374b62c57c187985717436de100cdbc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3zef=20Kucia?= Date: Mon, 17 Oct 2016 14:24:22 +0200 Subject: [PATCH] libs/vkd3d: Return E_INVALIDARG in d3d12_resource_Map() for textures. --- libs/vkd3d/resource.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/vkd3d/resource.c b/libs/vkd3d/resource.c index e1a3d4be..18b0ae17 100644 --- a/libs/vkd3d/resource.c +++ b/libs/vkd3d/resource.c @@ -462,8 +462,9 @@ static HRESULT STDMETHODCALLTYPE d3d12_resource_Map(ID3D12Resource *iface, UINT if (resource->desc.Dimension != D3D12_RESOURCE_DIMENSION_BUFFER) { + /* Textures seem to be mappable only on UMA adapters. */ FIXME("Not implemented for textures.\n"); - return E_NOTIMPL; + return E_INVALIDARG; } if (!resource->vk_memory)