mirror of
https://github.com/reactos/reactos.git
synced 2025-07-28 11:31:54 +00:00
[WINESYNC] d3dx9_36: Improve stub for ID3DXEffectImpl_CloneEffect.
wine-staging patch by Sebastian Lackner <sebastian@fds-team.de>
This commit is contained in:
parent
77cb466268
commit
4e6848d18a
2 changed files with 18 additions and 1 deletions
|
@ -4555,7 +4555,9 @@ static HRESULT WINAPI ID3DXEffectImpl_CloneEffect(ID3DXEffect *iface,
|
|||
if (!device)
|
||||
return D3DERR_INVALIDCALL;
|
||||
|
||||
return E_NOTIMPL;
|
||||
iface->lpVtbl->AddRef(iface);
|
||||
*effect = iface;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
#if D3DX_SDK_VERSION >= 27
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
diff --git a/dll/directx/wine/d3dx9_36/effect.c b/dll/directx/wine/d3dx9_36/effect.c
|
||||
index e8ae7b5..3538b15 100644
|
||||
--- a/dll/directx/wine/d3dx9_36/effect.c
|
||||
+++ b/dll/directx/wine/d3dx9_36/effect.c
|
||||
@@ -4555,7 +4555,9 @@ static HRESULT WINAPI ID3DXEffectImpl_CloneEffect(ID3DXEffect *iface,
|
||||
if (!device)
|
||||
return D3DERR_INVALIDCALL;
|
||||
|
||||
- return E_NOTIMPL;
|
||||
+ iface->lpVtbl->AddRef(iface);
|
||||
+ *effect = iface;
|
||||
+ return S_OK;
|
||||
}
|
||||
|
||||
#if D3DX_SDK_VERSION >= 27
|
Loading…
Add table
Add a link
Reference in a new issue