David Adam : d3dx8: Implement ID3DXMatrixStack_LoadMatrix.

Alexandre Julliard julliard at winehq.org
Fri Oct 31 09:23:54 CDT 2008


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

Author: David Adam <david.adam.cnrs at gmail.com>
Date:   Thu Oct 30 17:38:55 2008 +0100

d3dx8: Implement ID3DXMatrixStack_LoadMatrix.

---

 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)




More information about the wine-cvs mailing list