Henri Verbeet : wined3d: Don't print an ERR if the depth/ stencil surface still has references in wined3d_device_uninit_3d().

Alexandre Julliard julliard at winehq.org
Wed Jan 18 14:03:37 CST 2012


Module: wine
Branch: master
Commit: 59df293640fbb9e89ff0a5674bceb5fd8a131bdd
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=59df293640fbb9e89ff0a5674bceb5fd8a131bdd

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Tue Jan 17 21:13:30 2012 +0100

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

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)




More information about the wine-cvs mailing list