Matteo Bruni : d3dx9: Calling CommitChanges with no active pass silently returns.

Alexandre Julliard julliard at winehq.org
Tue Feb 25 16:58:14 CST 2014


Module: wine
Branch: master
Commit: b86b3dfa4022a515df6b578b8ca42a6a68ea74fe
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b86b3dfa4022a515df6b578b8ca42a6a68ea74fe

Author: Matteo Bruni <mbruni at codeweavers.com>
Date:   Mon Feb 24 19:18:45 2014 +0100

d3dx9: Calling CommitChanges with no active pass silently returns.

---

 dlls/d3dx9_36/effect.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dlls/d3dx9_36/effect.c b/dlls/d3dx9_36/effect.c
index ac13c72..548d5ee 100644
--- a/dlls/d3dx9_36/effect.c
+++ b/dlls/d3dx9_36/effect.c
@@ -3199,6 +3199,12 @@ static HRESULT WINAPI ID3DXEffectImpl_CommitChanges(ID3DXEffect* iface)
 
     FIXME("(%p)->(): stub\n", This);
 
+    if (!This->active_pass)
+    {
+        WARN("Called without an active pass.\n");
+        return D3D_OK;
+    }
+
     return E_NOTIMPL;
 }
 




More information about the wine-cvs mailing list