Commit 50f2aa92 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

ddraw: Handle stateblocks in d3d_device7_SetClipPlane().

parent c7de24e9
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment