Zebediah Figura : d3d9: Stop setting the device state when setting the default ZENABLE state.
Alexandre Julliard
julliard at winehq.org
Tue Jan 28 15:35:24 CST 2020
Module: wine
Branch: master
Commit: 891a067760db00d972af8be09a13a33a85c7725b
URL: https://source.winehq.org/git/wine.git/?a=commit;h=891a067760db00d972af8be09a13a33a85c7725b
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Mon Jan 27 09:23:16 2020 -0600
d3d9: Stop setting the device state when setting the default ZENABLE state.
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/d3d9/device.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c
index 441bfd2f44..8122ab0a05 100644
--- a/dlls/d3d9/device.c
+++ b/dlls/d3d9/device.c
@@ -1020,8 +1020,6 @@ static HRESULT d3d9_device_reset(struct d3d9_device *device,
device->auto_mipmaps = 0;
wined3d_stateblock_set_render_state(device->state, WINED3D_RS_ZENABLE,
!!swapchain_desc.enable_auto_depth_stencil);
- wined3d_device_set_render_state(device->wined3d_device, WINED3D_RS_ZENABLE,
- !!swapchain_desc.enable_auto_depth_stencil);
device_reset_viewport_state(device);
}
@@ -4673,8 +4671,6 @@ HRESULT device_init(struct d3d9_device *device, struct d3d9 *parent, struct wine
wined3d_stateblock_set_render_state(device->state, WINED3D_RS_ZENABLE,
!!swapchain_desc->enable_auto_depth_stencil);
- wined3d_device_set_render_state(device->wined3d_device,
- WINED3D_RS_ZENABLE, !!swapchain_desc->enable_auto_depth_stencil);
device_reset_viewport_state(device);
if (FAILED(hr = d3d9_device_get_swapchains(device)))
More information about the wine-cvs
mailing list