Commit 15824c07 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

wined3d: Do not modify depth test state in wined3d_device_init_3d().

We do not want to automagically disable depth test for D3D10+. Signed-off-by: 's avatarJózef Kucia <jkucia@codeweavers.com> Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent ad0ad75b
......@@ -949,7 +949,7 @@ void CDECL wined3d_device_release_focus_window(struct wined3d_device *device)
static void device_init_swapchain_state(struct wined3d_device *device, struct wined3d_swapchain *swapchain)
{
BOOL ds_enable = !!swapchain->desc.enable_auto_depth_stencil;
BOOL ds_enable = swapchain->desc.enable_auto_depth_stencil;
unsigned int i;
if (device->fb.render_targets)
......@@ -963,7 +963,6 @@ static void device_init_swapchain_state(struct wined3d_device *device, struct wi
}
wined3d_device_set_depth_stencil_view(device, ds_enable ? device->auto_depth_stencil_view : NULL);
wined3d_device_set_render_state(device, WINED3D_RS_ZENABLE, ds_enable);
}
static void wined3d_device_delete_opengl_contexts_cs(void *object)
......@@ -4881,6 +4880,8 @@ HRESULT CDECL wined3d_device_reset(struct wined3d_device *device,
device->update_state = &device->state;
device_init_swapchain_state(device, swapchain);
wined3d_device_set_render_state(device,
WINED3D_RS_ZENABLE, !!swapchain->desc.enable_auto_depth_stencil);
if (wined3d_settings.logo)
device_load_logo(device, wined3d_settings.logo);
}
......
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