ddraw: Handle stateblocks in d3d_device7_SetClipPlane().

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-10-30 09:42:07 -05:00 committed by Alexandre Julliard
parent c7de24e997
commit 50f2aa92fe
1 changed files with 3 additions and 1 deletions

View File

@ -6528,7 +6528,9 @@ static HRESULT d3d_device7_SetClipPlane(IDirect3DDevice7 *iface, DWORD idx, D3DV
wined3d_plane = (struct wined3d_vec4 *)plane;
wined3d_mutex_lock();
hr = wined3d_device_set_clip_plane(device->wined3d_device, idx, wined3d_plane);
hr = wined3d_stateblock_set_clip_plane(device->update_state, idx, wined3d_plane);
if (SUCCEEDED(hr) && !device->recording)
hr = wined3d_device_set_clip_plane(device->wined3d_device, idx, wined3d_plane);
if (idx < ARRAY_SIZE(device->user_clip_planes))
{
device->user_clip_planes[idx] = *wined3d_plane;