ddraw: Handle stateblocks in d3d_device7_SetViewport().

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-06 10:20:24 -06:00 committed by Alexandre Julliard
parent 00e98852e2
commit 227d5a32e3
1 changed files with 3 additions and 1 deletions

View File

@ -5358,6 +5358,8 @@ static HRESULT d3d_device7_SetViewport(IDirect3DDevice7 *iface, D3DVIEWPORT7 *vi
vp.min_z = viewport->dvMinZ;
vp.max_z = viewport->dvMaxZ;
wined3d_stateblock_set_viewport(device->update_state, &vp);
if (!device->recording)
wined3d_device_set_viewports(device->wined3d_device, 1, &vp);
wined3d_mutex_unlock();