From b9bf9df33b814b0025e8ae88e364dae752a2c476 Mon Sep 17 00:00:00 2001 From: Zebediah Figura Date: Thu, 27 Feb 2020 18:48:46 -0600 Subject: [PATCH] ddraw: Stop setting the device state in d3d_device7_SetClipPlane(). Signed-off-by: Zebediah Figura Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- dlls/ddraw/device.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/dlls/ddraw/device.c b/dlls/ddraw/device.c index b244a0309b0..7acc8e0db0b 100644 --- a/dlls/ddraw/device.c +++ b/dlls/ddraw/device.c @@ -6526,8 +6526,6 @@ static HRESULT d3d_device7_SetClipPlane(IDirect3DDevice7 *iface, DWORD idx, D3DV wined3d_mutex_lock(); 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;