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:
parent
00e98852e2
commit
227d5a32e3
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue