Henri Verbeet : wined3d: Only unset the onscreen depth / stencil buffer once in wined3d_device_reset().
Alexandre Julliard
julliard at winehq.org
Tue Jun 26 13:34:15 CDT 2012
Module: wine
Branch: master
Commit: 0ee3007963f6b63c265c2e34da49deac65e3d5ef
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0ee3007963f6b63c265c2e34da49deac65e3d5ef
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Tue Jun 26 15:32:09 2012 +0200
wined3d: Only unset the onscreen depth / stencil buffer once in wined3d_device_reset().
---
dlls/wined3d/device.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index ed1ebbd..cae76ff 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -5289,12 +5289,6 @@ HRESULT CDECL wined3d_device_reset(struct wined3d_device *device,
}
}
- if (device->onscreen_depth_stencil)
- {
- wined3d_surface_decref(device->onscreen_depth_stencil);
- device->onscreen_depth_stencil = NULL;
- }
-
/* Reset the depth stencil */
if (swapchain_desc->enable_auto_depth_stencil)
wined3d_device_set_depth_stencil(device, device->auto_depth_stencil);
More information about the wine-cvs
mailing list