Module: wine
Branch: master
Commit: bff80b8bab25aee0cd25e1b10f1edbd7b2091631
URL: http://source.winehq.org/git/wine.git/?a=commit;h=bff80b8bab25aee0cd25e1b10…
Author: Henri Verbeet <hverbeet(a)codeweavers.com>
Date: Mon Sep 23 10:26:45 2013 +0200
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.
---
dlls/wined3d/device.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 158305b..9c3200e 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -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