mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-11-21 16:46:54 -08:00
Add patch with stub for D3DX10CreateEffectFromMemory.
This commit is contained in:
parent
2315442bb2
commit
75174bcf22
@ -0,0 +1,47 @@
|
||||
From 810bfdf3e2b0d08279d066e8fa2f0af194e63de4 Mon Sep 17 00:00:00 2001
|
||||
From: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
|
||||
Date: Wed, 22 Jul 2015 14:20:34 +1000
|
||||
Subject: d3dx10_43: Added D3DX10CreateEffectFromMemory stub.
|
||||
|
||||
---
|
||||
dlls/d3dx10_43/d3dx10_43.spec | 2 +-
|
||||
dlls/d3dx10_43/d3dx10_43_main.c | 13 +++++++++++++
|
||||
2 files changed, 14 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/dlls/d3dx10_43/d3dx10_43.spec b/dlls/d3dx10_43/d3dx10_43.spec
|
||||
index 5bc871b..ada1fa0 100644
|
||||
--- a/dlls/d3dx10_43/d3dx10_43.spec
|
||||
+++ b/dlls/d3dx10_43/d3dx10_43.spec
|
||||
@@ -22,7 +22,7 @@
|
||||
@ stub D3DX10CreateDeviceAndSwapChain(ptr long long long ptr ptr ptr)
|
||||
@ stdcall D3DX10CreateEffectFromFileA(str ptr ptr str long long ptr ptr ptr ptr ptr ptr)
|
||||
@ stdcall D3DX10CreateEffectFromFileW(wstr ptr ptr str long long ptr ptr ptr ptr ptr ptr)
|
||||
-@ stub D3DX10CreateEffectFromMemory(ptr long str ptr ptr str long long ptr ptr ptr ptr ptr ptr)
|
||||
+@ stdcall D3DX10CreateEffectFromMemory(ptr long str ptr ptr str long long ptr ptr ptr ptr ptr ptr)
|
||||
@ stub D3DX10CreateEffectFromResourceA(long str str ptr ptr str long long ptr ptr ptr ptr ptr ptr)
|
||||
@ stub D3DX10CreateEffectFromResourceW(long wstr wstr ptr ptr str long long ptr ptr ptr ptr ptr ptr)
|
||||
@ stub D3DX10CreateEffectPoolFromFileA(str ptr ptr str long long ptr ptr ptr ptr ptr)
|
||||
diff --git a/dlls/d3dx10_43/d3dx10_43_main.c b/dlls/d3dx10_43/d3dx10_43_main.c
|
||||
index 1b505fa..0e4c580 100644
|
||||
--- a/dlls/d3dx10_43/d3dx10_43_main.c
|
||||
+++ b/dlls/d3dx10_43/d3dx10_43_main.c
|
||||
@@ -90,3 +90,16 @@ HRESULT WINAPI D3DX10CreateEffectFromFileW(const WCHAR *filename, const D3D10_SH
|
||||
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
+
|
||||
+HRESULT WINAPI D3DX10CreateEffectFromMemory(const void *data, SIZE_T datasize, const char *filename,
|
||||
+ const D3D10_SHADER_MACRO *defines, ID3D10Include *include, const char *profile, UINT hlslflags,
|
||||
+ UINT fxflags, ID3D10Device *device, ID3D10EffectPool *effectpool, ID3DX10ThreadPump *pump,
|
||||
+ ID3D10Effect **effect, ID3D10Blob **errors, HRESULT *hresult)
|
||||
+{
|
||||
+ FIXME("data %p, datasize %lu, filename %s, defines %p, include %p, profile %s, hlslflags %#x, fxflags %#x, "
|
||||
+ "device %p, effectpool %p, pump %p, effect %p, errors %p, hresult %p\n",
|
||||
+ data, datasize, debugstr_a(filename), defines, include, debugstr_a(profile), hlslflags, fxflags, device,
|
||||
+ effectpool, pump, effect, errors, hresult);
|
||||
+
|
||||
+ return E_NOTIMPL;
|
||||
+}
|
||||
--
|
||||
2.4.5
|
||||
|
@ -2145,9 +2145,11 @@ fi
|
||||
if test "$enable_d3dx10_43_D3DX10CreateEffectFromFile" -eq 1; then
|
||||
patch_apply d3dx10_43-D3DX10CreateEffectFromFile/0001-d3dx10_43-Add-ID3DX10ThreadPump-interface.patch
|
||||
patch_apply d3dx10_43-D3DX10CreateEffectFromFile/0002-d3dx10_43-Add-D3DX10CreateEffectFromFileA-W-stubs.patch
|
||||
patch_apply d3dx10_43-D3DX10CreateEffectFromFile/0003-d3dx10_43-Added-D3DX10CreateEffectFromMemory-stub.patch
|
||||
(
|
||||
echo '+ { "Alistair Leslie-Hughes", "d3dx10_43: Add ID3DX10ThreadPump interface.", 1 },';
|
||||
echo '+ { "Alistair Leslie-Hughes", "d3dx10_43: Add D3DX10CreateEffectFromFileA/W stubs.", 1 },';
|
||||
echo '+ { "Alistair Leslie-Hughes", "d3dx10_43: Added D3DX10CreateEffectFromMemory stub.", 1 },';
|
||||
) >> "$patchlist"
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user