d3d9: Stop setting the device state in d3d9_device_SetIndices().

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2020-02-03 21:17:43 -06:00 committed by Alexandre Julliard
parent 57c57fb5a1
commit 7c362357a5
1 changed files with 0 additions and 3 deletions

View File

@ -3776,10 +3776,7 @@ static HRESULT WINAPI d3d9_device_SetIndices(IDirect3DDevice9Ex *iface, IDirect3
wined3d_mutex_lock(); wined3d_mutex_lock();
wined3d_stateblock_set_index_buffer(device->update_state, wined3d_buffer, ib ? ib->format : WINED3DFMT_UNKNOWN); wined3d_stateblock_set_index_buffer(device->update_state, wined3d_buffer, ib ? ib->format : WINED3DFMT_UNKNOWN);
if (!device->recording) 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; device->sysmem_ib = ib && ib->draw_buffer;
}
wined3d_mutex_unlock(); wined3d_mutex_unlock();
return D3D_OK; return D3D_OK;