d3dx8: Implement ID3DXMatrixStack_GetTop().

David Adam david.adam.cnrs at gmail.com
Wed Oct 29 10:34:21 CDT 2008


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

diff --git a/dlls/d3dx8/math.c b/dlls/d3dx8/math.c
index 631f0a1..eedc115 100644
--- a/dlls/d3dx8/math.c
+++ b/dlls/d3dx8/math.c
@@ -654,8 +654,10 @@ static ULONG WINAPI ID3DXMatrixStackImpl_Release(ID3DXMatrixStack* iface)
 static D3DXMATRIX* WINAPI ID3DXMatrixStackImpl_GetTop(ID3DXMatrixStack *iface)
 {
     ID3DXMatrixStackImpl *This = (ID3DXMatrixStackImpl *)iface;
-    FIXME("(%p) : stub\n",This);
-    return NULL;
+
+    TRACE("iface %p\n", iface);
+
+    return &This->stack[This->current];
 }
 
 static HRESULT WINAPI ID3DXMatrixStackImpl_LoadIdentity(ID3DXMatrixStack *iface)
-- 
1.5.6.4



--------------010602040708020007050502--



More information about the wine-patches mailing list