[PATCH 01/10] wined3d: Don't print an ERR if the depth/stencil surface still has references in wined3d_device_uninit_3d().

Henri Verbeet hverbeet at codeweavers.com
Tue Jan 17 14:13:30 CST 2012


This is completely legitimate in ddraw.
---
 dlls/wined3d/device.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index a68fb6d..84e0db0 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -1493,9 +1493,7 @@ HRESULT CDECL wined3d_device_uninit_3d(struct wined3d_device *device)
         TRACE("Releasing depth/stencil buffer %p.\n", surface);
 
         device->fb.depth_stencil = NULL;
-        if (wined3d_surface_decref(surface)
-                && surface != device->auto_depth_stencil)
-            ERR("Something is still holding a reference to depth/stencil buffer %p.\n", surface);
+        wined3d_surface_decref(surface);
     }
 
     if (device->auto_depth_stencil)
-- 
1.7.3.4




More information about the wine-patches mailing list