[PATCH 2/2] d3dx10: Add D3DX10UnsetAllDeviceObjects stub
Alistair Leslie-Hughes
leslie_alistair at hotmail.com
Tue Mar 29 02:07:33 CDT 2016
Reference: https://bugs.winehq.org/show_bug.cgi?id=27035
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
---
dlls/d3dx10_43/d3dx10_43.spec | 2 +-
dlls/d3dx10_43/d3dx10_43_main.c | 8 ++++++++
include/d3dx10core.idl | 9 +++++++++
3 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/dlls/d3dx10_43/d3dx10_43.spec b/dlls/d3dx10_43/d3dx10_43.spec
index 9edcf54..0673f6a 100644
--- a/dlls/d3dx10_43/d3dx10_43.spec
+++ b/dlls/d3dx10_43/d3dx10_43.spec
@@ -64,7 +64,7 @@
@ stub D3DX10SaveTextureToFileA(ptr ptr str)
@ stub D3DX10SaveTextureToFileW(ptr ptr wstr)
@ stub D3DX10SaveTextureToMemory(ptr ptr ptr long)
-@ stub D3DX10UnsetAllDeviceObjects(ptr)
+@ stdcall D3DX10UnsetAllDeviceObjects(ptr)
@ stdcall D3DXBoxBoundProbe(ptr ptr ptr ptr) d3dx9_36.D3DXBoxBoundProbe
@ stdcall D3DXColorAdjustContrast(ptr ptr float) d3dx9_36.D3DXColorAdjustContrast
@ stdcall D3DXColorAdjustSaturation(ptr ptr float) d3dx9_36.D3DXColorAdjustSaturation
diff --git a/dlls/d3dx10_43/d3dx10_43_main.c b/dlls/d3dx10_43/d3dx10_43_main.c
index 6637af3..565d48a 100644
--- a/dlls/d3dx10_43/d3dx10_43_main.c
+++ b/dlls/d3dx10_43/d3dx10_43_main.c
@@ -116,3 +116,11 @@ HRESULT WINAPI D3DX10CreateEffectPoolFromMemory(const void *data, SIZE_T datasiz
return E_NOTIMPL;
}
+
+HRESULT WINAPI D3DX10UnsetAllDeviceObjects(ID3D10Device *device)
+{
+ FIXME("device %p.\n", device);
+
+ return E_NOTIMPL;
+}
+
diff --git a/include/d3dx10core.idl b/include/d3dx10core.idl
index f0d8ff6..f3b51b8 100644
--- a/include/d3dx10core.idl
+++ b/include/d3dx10core.idl
@@ -64,3 +64,12 @@ interface ID3DX10ThreadPump : IUnknown
HRESULT PurgeAllItems();
HRESULT GetQueueStatus([in] UINT *queue, [in] UINT *processqueue, [in] UINT *devicequeue);
};
+
+cpp_quote("#ifdef __cplusplus")
+cpp_quote("extern \"C\" {")
+cpp_quote("#endif")
+cpp_quote("HRESULT WINAPI D3DX10UnsetAllDeviceObjects(ID3D10Device *device);")
+cpp_quote("#ifdef __cplusplus")
+cpp_quote("}")
+cpp_quote("#endif")
+
--
1.9.1
More information about the wine-patches
mailing list