[PATCH] Implementation of ID3DXMatrixStack::MultMatrixLocal

Jérôme Gardou jerome.gardou at laposte.net
Sat Nov 15 09:14:01 CST 2008


---
 dlls/d3dx8/math.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/dlls/d3dx8/math.c b/dlls/d3dx8/math.c
index b015336..143c352 100644
--- a/dlls/d3dx8/math.c
+++ b/dlls/d3dx8/math.c
@@ -696,8 +696,11 @@ static HRESULT WINAPI ID3DXMatrixStackImpl_MultMatrix(ID3DXMatrixStack *iface, C
 static HRESULT WINAPI ID3DXMatrixStackImpl_MultMatrixLocal(ID3DXMatrixStack *iface, CONST D3DXMATRIX *pm)
 {
     ID3DXMatrixStackImpl *This = (ID3DXMatrixStackImpl *)iface;
-    FIXME("(%p) : stub\n",This);
-    return E_NOTIMPL;
+    TRACE("iface %p\n",This);
+
+    if(!pm) return D3DERR_INVALIDCALL ;
+    D3DXMatrixMultiply(&This->stack[This->current], pm, &This->stack[This->current]) ;
+    return D3D_OK;
 }
 
 static HRESULT WINAPI ID3DXMatrixStackImpl_Pop(ID3DXMatrixStack *iface)
-- 
1.6.0.3


--------------070404080806020601010903--



More information about the wine-patches mailing list