d3d9: Handle stateblocks in d3d9_device_SetScissorRect().

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 2019-11-07 18:28:52 -06:00 committed by Alexandre Julliard
parent 0383f62b3c
commit 08ae44e82d
1 changed files with 3 additions and 1 deletions

View File

@ -2685,7 +2685,9 @@ static HRESULT WINAPI d3d9_device_SetScissorRect(IDirect3DDevice9Ex *iface, cons
TRACE("iface %p, rect %p.\n", iface, rect);
wined3d_mutex_lock();
wined3d_device_set_scissor_rects(device->wined3d_device, 1, rect);
wined3d_stateblock_set_scissor_rect(device->update_state, rect);
if (!device->recording)
wined3d_device_set_scissor_rects(device->wined3d_device, 1, rect);
wined3d_mutex_unlock();
return D3D_OK;