Zebediah Figura : d3d8: Stop setting the device state when setting the default ZENABLE and POINTSIZE_MIN states.
Alexandre Julliard
julliard at winehq.org
Wed Jan 29 16:24:06 CST 2020
Module: wine
Branch: master
Commit: 23de061d2f8347d8131909bc137c9b4a536d58e9
URL: https://source.winehq.org/git/wine.git/?a=commit;h=23de061d2f8347d8131909bc137c9b4a536d58e9
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Tue Jan 28 22:45:13 2020 -0600
d3d8: Stop setting the device state when setting the default ZENABLE and POINTSIZE_MIN states.
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/d3d8/device.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/dlls/d3d8/device.c b/dlls/d3d8/device.c
index b0a0491890..71717852bb 100644
--- a/dlls/d3d8/device.c
+++ b/dlls/d3d8/device.c
@@ -927,9 +927,6 @@ static HRESULT WINAPI d3d8_device_Reset(IDirect3DDevice8 *iface,
wined3d_stateblock_set_render_state(device->state, WINED3D_RS_POINTSIZE_MIN, 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_POINTSIZE_MIN, 0);
- wined3d_device_set_render_state(device->wined3d_device, WINED3D_RS_ZENABLE,
- !!swapchain_desc.enable_auto_depth_stencil);
device_reset_viewport_state(device);
device->device_state = D3D8_DEVICE_STATE_OK;
}
@@ -3769,9 +3766,6 @@ HRESULT device_init(struct d3d8_device *device, struct d3d8 *parent, struct wine
wined3d_stateblock_set_render_state(device->state, WINED3D_RS_ZENABLE,
!!swapchain_desc.enable_auto_depth_stencil);
wined3d_stateblock_set_render_state(device->state, WINED3D_RS_POINTSIZE_MIN, 0);
- wined3d_device_set_render_state(device->wined3d_device,
- WINED3D_RS_ZENABLE, !!swapchain_desc.enable_auto_depth_stencil);
- wined3d_device_set_render_state(device->wined3d_device, WINED3D_RS_POINTSIZE_MIN, 0);
device_reset_viewport_state(device);
wined3d_mutex_unlock();
More information about the wine-cvs
mailing list