d3dx8: Implement ID3DXMatrixStack_LoadMatrix().
David Adam
david.adam.cnrs at gmail.com
Thu Oct 30 11:38:55 CDT 2008
---
dlls/d3dx8/math.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/dlls/d3dx8/math.c b/dlls/d3dx8/math.c
index 956a6a0..9a8c530 100644
--- a/dlls/d3dx8/math.c
+++ b/dlls/d3dx8/math.c
@@ -674,8 +674,13 @@ static HRESULT WINAPI ID3DXMatrixStackImpl_LoadIdentity(ID3DXMatrixStack *iface)
static HRESULT WINAPI ID3DXMatrixStackImpl_LoadMatrix(ID3DXMatrixStack *iface, CONST D3DXMATRIX *pm)
{
ID3DXMatrixStackImpl *This = (ID3DXMatrixStackImpl *)iface;
- FIXME("(%p) : stub\n",This);
- return E_NOTIMPL;
+
+ TRACE("iface %p\n", iface);
+
+ if (!pm) return D3DERR_INVALIDCALL;
+ This->stack[This->current] = *pm;
+
+ return D3D_OK;
}
static HRESULT WINAPI ID3DXMatrixStackImpl_MultMatrix(ID3DXMatrixStack *iface, CONST D3DXMATRIX *pm)
--
1.5.6.4
--------------040401010502000304020100--
More information about the wine-patches
mailing list