wined3d: Cleanup surfaces only once.
This commit is contained in:
parent
a2d10bc2e5
commit
0116af3703
|
@ -2667,7 +2667,6 @@ ULONG CDECL wined3d_surface_decref(struct wined3d_surface *surface)
|
|||
|
||||
if (!refcount)
|
||||
{
|
||||
surface_cleanup(surface);
|
||||
surface->surface_ops->surface_cleanup(surface);
|
||||
surface->resource.parent_ops->wined3d_object_destroyed(surface->resource.parent);
|
||||
|
||||
|
|
Loading…
Reference in New Issue