[PATCH 2/5] wined3d: Copy some missing fields to the new swapchain desc in wined3d_device_reset().
Henri Verbeet
hverbeet at codeweavers.com
Mon Sep 23 03:26:45 CDT 2013
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 file changed, 4 insertions(+), 1 deletion(-)
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
--
1.7.10.4
More information about the wine-patches
mailing list