d3d10core: Implement ID3D10Device::IASetInputLayout().

Henri Verbeet hverbeet at codeweavers.com
Tue Mar 31 02:38:14 CDT 2009


---
 dlls/d3d10core/device.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/dlls/d3d10core/device.c b/dlls/d3d10core/device.c
index ff31b53..336ae85 100644
--- a/dlls/d3d10core/device.c
+++ b/dlls/d3d10core/device.c
@@ -166,7 +166,12 @@ static void STDMETHODCALLTYPE d3d10_device_PSSetConstantBuffers(ID3D10Device *if
 
 static void STDMETHODCALLTYPE d3d10_device_IASetInputLayout(ID3D10Device *iface, ID3D10InputLayout *input_layout)
 {
-    FIXME("iface %p, input_layout %p stub!\n", iface, input_layout);
+    struct d3d10_device *This = (struct d3d10_device *)iface;
+
+    TRACE("iface %p, input_layout %p\n", iface, input_layout);
+
+    IWineD3DDevice_SetVertexDeclaration(This->wined3d_device,
+            ((struct d3d10_input_layout *)input_layout)->wined3d_decl);
 }
 
 static void STDMETHODCALLTYPE d3d10_device_IASetVertexBuffers(ID3D10Device *iface,
-- 
1.6.0.6



--------------060005080302010303070407--



More information about the wine-patches mailing list