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.
oldstable
Henri Verbeet 2012-01-17 21:13:30 +01:00 committed by Alexandre Julliard
parent 3b60c2c0d1
commit 59df293640
1 changed files with 1 additions and 3 deletions

View File

@ -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)