Module: wine Branch: master Commit: 680b67e4090e4ee1d6e1d61f1e7c6d1a80702623 URL: http://source.winehq.org/git/wine.git/?a=commit;h=680b67e4090e4ee1d6e1d61f1e...
Author: Józef Kucia jkucia@codeweavers.com Date: Fri Nov 6 01:28:23 2015 +0100
d3d11: Implement d3d11_immediate_context_Draw().
Signed-off-by: Józef Kucia jkucia@codeweavers.com Signed-off-by: Henri Verbeet hverbeet@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/d3d11/device.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/dlls/d3d11/device.c b/dlls/d3d11/device.c index 4560f52..5e9e26d 100644 --- a/dlls/d3d11/device.c +++ b/dlls/d3d11/device.c @@ -195,8 +195,14 @@ static void STDMETHODCALLTYPE d3d11_immediate_context_DrawIndexed(ID3D11DeviceCo static void STDMETHODCALLTYPE d3d11_immediate_context_Draw(ID3D11DeviceContext *iface, UINT vertex_count, UINT start_vertex_location) { - FIXME("iface %p, vertex_count %u, start_vertex_location %u stub!\n", + struct d3d_device *device = device_from_immediate_ID3D11DeviceContext(iface); + + TRACE("iface %p, vertex_count %u, start_vertex_location %u.\n", iface, vertex_count, start_vertex_location); + + wined3d_mutex_lock(); + wined3d_device_draw_primitive(device->wined3d_device, start_vertex_location, vertex_count); + wined3d_mutex_unlock(); }
static HRESULT STDMETHODCALLTYPE d3d11_immediate_context_Map(ID3D11DeviceContext *iface, ID3D11Resource *resource,