forked from Mirrors/wine-wine
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
parent
3b60c2c0d1
commit
59df293640
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue