summaryrefslogtreecommitdiffstats
path: root/wine/build/wine_d3d_reset.patch
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2012-05-20 10:12:06 +0000
committer Eric Hameleers <alien@slackware.com>2012-05-20 10:12:06 +0000
commit36fe652198e83d5c6b4a3b5cba8834b68b87158e (patch)
treec882dd56b0ed60453ba259e913ffcaa282447fa2 /wine/build/wine_d3d_reset.patch
parentfc712a4b0bdd542beb59a47cb04d49c9d3f49842 (diff)
downloadasb-36fe652198e83d5c6b4a3b5cba8834b68b87158e.tar.gz
asb-36fe652198e83d5c6b4a3b5cba8834b68b87158e.tar.xz
Initial revision
Diffstat (limited to 'wine/build/wine_d3d_reset.patch')
-rw-r--r--wine/build/wine_d3d_reset.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/wine/build/wine_d3d_reset.patch b/wine/build/wine_d3d_reset.patch
new file mode 100644
index 00000000..45197358
--- /dev/null
+++ b/wine/build/wine_d3d_reset.patch
@@ -0,0 +1,24 @@
+--- a/dlls/wined3d/device.c
++++ a/dlls/wined3d/device.c
+@@ -5294,6 +5294,7 @@ HRESULT CDECL wined3d_device_reset(struct wined3d_device *device,
+ wined3d_surface_decref(device->onscreen_depth_stencil);
+ device->onscreen_depth_stencil = NULL;
+ }
++ wined3d_device_set_depth_stencil(device, NULL);
+
+ LIST_FOR_EACH_ENTRY_SAFE(resource, cursor, &device->resources, struct wined3d_resource, resource_list_entry)
+ {
+@@ -5393,11 +5394,9 @@ HRESULT CDECL wined3d_device_reset(struct wined3d_device *device,
+ device->onscreen_depth_stencil = NULL;
+ }
+
+- /* Reset the depth stencil */
++ /* Apply the auto depth stencil if the app requested one */
+ if (swapchain_desc->enable_auto_depth_stencil)
+ wined3d_device_set_depth_stencil(device, device->auto_depth_stencil);
+- else
+- wined3d_device_set_depth_stencil(device, NULL);
+
+ TRACE("Resetting stateblock\n");
+ wined3d_stateblock_decref(device->updateStateBlock);
+