1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-01 07:14:31 +00:00

d3dx10: Exit early on volume textures in D3DX10CreateTextureFromMemory.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
This commit is contained in:
Piotr Caban 2022-06-11 19:54:18 +02:00 committed by Alexandre Julliard
parent 802cbe14f9
commit 547c292a80

View File

@ -714,6 +714,13 @@ HRESULT WINAPI D3DX10CreateTextureFromMemory(ID3D10Device *device, const void *s
*hresult = E_FAIL;
return E_FAIL;
}
if (img_info.ArraySize != 1)
{
FIXME("img_info.ArraySize = %u not supported.\n", img_info.ArraySize);
if (hresult)
*hresult = E_NOTIMPL;
return E_NOTIMPL;
}
if (FAILED(hr = WICCreateImagingFactory_Proxy(WINCODEC_SDK_VERSION, &factory)))
goto end;