wined3d: Cleanup surfaces only once.

This commit is contained in:
Henri Verbeet 2011-05-02 22:16:35 +02:00 committed by Alexandre Julliard
parent a2d10bc2e5
commit 0116af3703
1 changed files with 0 additions and 1 deletions

View File

@ -2667,7 +2667,6 @@ ULONG CDECL wined3d_surface_decref(struct wined3d_surface *surface)
if (!refcount) if (!refcount)
{ {
surface_cleanup(surface);
surface->surface_ops->surface_cleanup(surface); surface->surface_ops->surface_cleanup(surface);
surface->resource.parent_ops->wined3d_object_destroyed(surface->resource.parent); surface->resource.parent_ops->wined3d_object_destroyed(surface->resource.parent);