[PATCH] Implementation of ID3DXMatrixStack::MultMatrix
Jérôme Gardou
jerome.gardou at laposte.net
Sat Nov 15 09:12:20 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 f41c9f4..b015336 100644
--- a/dlls/d3dx8/math.c
+++ b/dlls/d3dx8/math.c
@@ -686,8 +686,11 @@ static HRESULT WINAPI ID3DXMatrixStackImpl_LoadMatrix(ID3DXMatrixStack *iface, C
static HRESULT WINAPI ID3DXMatrixStackImpl_MultMatrix(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], &This->stack[This->current], pm) ;
+ return D3D_OK;
}
static HRESULT WINAPI ID3DXMatrixStackImpl_MultMatrixLocal(ID3DXMatrixStack *iface, CONST D3DXMATRIX *pm)
--
1.6.0.3
--------------070806070407090102000604--
More information about the wine-patches
mailing list