From 36fe652198e83d5c6b4a3b5cba8834b68b87158e Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Sun, 20 May 2012 10:12:06 +0000 Subject: Initial revision --- wine/build/wine_d3d_reset.patch | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 wine/build/wine_d3d_reset.patch (limited to 'wine/build/wine_d3d_reset.patch') 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); + -- cgit v1.2.3-65-gdbad