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:
parent
c7de24e997
commit
50f2aa92fe
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue