From 7c362357a5decf6fdb9c998a45a082678e02ddc6 Mon Sep 17 00:00:00 2001 From: Zebediah Figura Date: Mon, 3 Feb 2020 21:17:43 -0600 Subject: [PATCH] d3d9: Stop setting the device state in d3d9_device_SetIndices(). Signed-off-by: Zebediah Figura Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- dlls/d3d9/device.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c index f9d37ae8a95..880e90a2ffe 100644 --- a/dlls/d3d9/device.c +++ b/dlls/d3d9/device.c @@ -3776,10 +3776,7 @@ static HRESULT WINAPI d3d9_device_SetIndices(IDirect3DDevice9Ex *iface, IDirect3 wined3d_mutex_lock(); wined3d_stateblock_set_index_buffer(device->update_state, wined3d_buffer, ib ? ib->format : WINED3DFMT_UNKNOWN); if (!device->recording) - { - wined3d_device_set_index_buffer(device->wined3d_device, wined3d_buffer, ib ? ib->format : WINED3DFMT_UNKNOWN, 0); device->sysmem_ib = ib && ib->draw_buffer; - } wined3d_mutex_unlock(); return D3D_OK;