Piotr Caban : d3dx10: Exit early on volume textures in D3DX10CreateTextureFromMemory.

Alexandre Julliard julliard at winehq.org
Wed Jun 15 16:05:58 CDT 2022


Module: wine
Branch: master
Commit: 547c292a80ad6eaecde2e31413a7646a1e0531e3
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=547c292a80ad6eaecde2e31413a7646a1e0531e3

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Sat Jun 11 19:54:18 2022 +0200

d3dx10: Exit early on volume textures in D3DX10CreateTextureFromMemory.

Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>

---

 dlls/d3dx10_43/texture.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/dlls/d3dx10_43/texture.c b/dlls/d3dx10_43/texture.c
index d5066b9793b..bba08f11beb 100644
--- a/dlls/d3dx10_43/texture.c
+++ b/dlls/d3dx10_43/texture.c
@@ -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;




More information about the wine-cvs mailing list