Module: wine Branch: master Commit: bc59705acac5f67a834c6e4ed4338c1db8b1f532 URL: http://source.winehq.org/git/wine.git/?a=commit;h=bc59705acac5f67a834c6e4ed4...
Author: Rico Schüller kgbricola@web.de Date: Mon Jun 27 11:58:38 2011 +0200
d3dx9: Implement ID3DXEffect::EndPass().
---
dlls/d3dx9_36/effect.c | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/dlls/d3dx9_36/effect.c b/dlls/d3dx9_36/effect.c index b11d3d1..756163a 100644 --- a/dlls/d3dx9_36/effect.c +++ b/dlls/d3dx9_36/effect.c @@ -2873,13 +2873,21 @@ static HRESULT WINAPI ID3DXEffectImpl_CommitChanges(ID3DXEffect* iface) return E_NOTIMPL; }
-static HRESULT WINAPI ID3DXEffectImpl_EndPass(ID3DXEffect* iface) +static HRESULT WINAPI ID3DXEffectImpl_EndPass(ID3DXEffect *iface) { struct ID3DXEffectImpl *This = impl_from_ID3DXEffect(iface);
- FIXME("(%p)->(): stub\n", This); + TRACE("iface %p\n", This);
- return E_NOTIMPL; + if (This->active_pass) + { + This->active_pass = NULL; + return D3D_OK; + } + + WARN("Invalid call.\n"); + + return D3DERR_INVALIDCALL; }
static HRESULT WINAPI ID3DXEffectImpl_End(ID3DXEffect* iface)