[PATCH 2/5] d3d11: Implement d3d11_immediate_context_DrawIndexed().
Józef Kucia
jkucia at codeweavers.com
Thu Nov 12 19:23:39 CST 2015
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
dlls/d3d11/device.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/dlls/d3d11/device.c b/dlls/d3d11/device.c
index d357c2a..325c006 100644
--- a/dlls/d3d11/device.c
+++ b/dlls/d3d11/device.c
@@ -227,8 +227,15 @@ static void STDMETHODCALLTYPE d3d11_immediate_context_VSSetShader(ID3D11DeviceCo
static void STDMETHODCALLTYPE d3d11_immediate_context_DrawIndexed(ID3D11DeviceContext *iface,
UINT index_count, UINT start_index_location, INT base_vertex_location)
{
- FIXME("iface %p, index_count %u, start_index_location %u, base_vertex_location %d stub!\n",
+ struct d3d_device *device = device_from_immediate_ID3D11DeviceContext(iface);
+
+ TRACE("iface %p, index_count %u, start_index_location %u, base_vertex_location %d.\n",
iface, index_count, start_index_location, base_vertex_location);
+
+ wined3d_mutex_lock();
+ wined3d_device_set_base_vertex_index(device->wined3d_device, base_vertex_location);
+ wined3d_device_draw_indexed_primitive(device->wined3d_device, start_index_location, index_count);
+ wined3d_mutex_unlock();
}
static void STDMETHODCALLTYPE d3d11_immediate_context_Draw(ID3D11DeviceContext *iface,
--
2.4.10
More information about the wine-patches
mailing list