mirror of
https://github.com/reactos/reactos.git
synced 2024-06-30 18:01:07 +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
|
@ -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
|
||||
|
|
|
@ -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…
Reference in a new issue