ddraw: Update the primary stateblock in update_clip_space().

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-01-29 19:24:46 -06:00 committed by Alexandre Julliard
parent b41af695c3
commit 1907d01fab
1 changed files with 2 additions and 0 deletions

View File

@ -38,6 +38,8 @@ static void update_clip_space(struct d3d_device *device,
D3DMATRIX projection;
multiply_matrix(&projection, &clip_space, &device->legacy_projection);
wined3d_stateblock_set_transform(device->state,
WINED3D_TS_PROJECTION, (struct wined3d_matrix *)&projection);
wined3d_device_set_transform(device->wined3d_device,
WINED3D_TS_PROJECTION, (struct wined3d_matrix *)&projection);
device->legacy_clipspace = clip_space;