Commit 547c292a authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

d3dx10: Exit early on volume textures in D3DX10CreateTextureFromMemory.

parent 802cbe14
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment