Commit bff80b8b authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Copy some missing fields to the new swapchain desc in wined3d_device_reset().

The ones that matter are enable_auto_depth_stencil and auto_depth_stencil_format. auto_restore_display_mode should never change in practice.
parent 864b25e5
......@@ -4505,9 +4505,12 @@ HRESULT CDECL wined3d_device_reset(struct wined3d_device *device,
/* No special treatment of these parameters. Just store them */
swapchain->desc.swap_effect = swapchain_desc->swap_effect;
swapchain->desc.enable_auto_depth_stencil = swapchain_desc->enable_auto_depth_stencil;
swapchain->desc.auto_depth_stencil_format = swapchain_desc->auto_depth_stencil_format;
swapchain->desc.flags = swapchain_desc->flags;
swapchain->desc.swap_interval = swapchain_desc->swap_interval;
swapchain->desc.refresh_rate = swapchain_desc->refresh_rate;
swapchain->desc.swap_interval = swapchain_desc->swap_interval;
swapchain->desc.auto_restore_display_mode = swapchain_desc->auto_restore_display_mode;
/* What to do about these? */
if (swapchain_desc->backbuffer_count
......
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