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:
parent
802cbe14f9
commit
547c292a80
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue