mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 20:47:21 +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
fea73b02ee
commit
6311935980
2 changed files with 18 additions and 1 deletions
|
@ -4511,7 +4511,9 @@ static HRESULT WINAPI ID3DXEffectImpl_CloneEffect(ID3DXEffect *iface,
|
||||||
if (!device)
|
if (!device)
|
||||||
return D3DERR_INVALIDCALL;
|
return D3DERR_INVALIDCALL;
|
||||||
|
|
||||||
return E_NOTIMPL;
|
iface->lpVtbl->AddRef(iface);
|
||||||
|
*effect = iface;
|
||||||
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if D3DX_SDK_VERSION >= 27
|
#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 33197de..8c2b499 100644
|
||||||
|
--- a/dll/directx/wine/d3dx9_36/effect.c
|
||||||
|
+++ b/dll/directx/wine/d3dx9_36/effect.c
|
||||||
|
@@ -4511,7 +4511,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