wined3d: Remove texture locations after downloading all subresources.

This commit is contained in:
Stefan Dösinger 2014-10-22 21:56:38 +02:00 committed by Alexandre Julliard
parent 6334bf09b7
commit aad1997dff
3 changed files with 1 additions and 2 deletions

View File

@ -1207,7 +1207,6 @@ static void surface_unload(struct wined3d_resource *resource)
surface_load_location(surface, surface->resource.map_binding);
surface_invalidate_location(surface, ~surface->resource.map_binding);
}
wined3d_texture_force_reload(surface->container);
context = context_acquire(device, NULL);
gl_info = context->gl_info;

View File

@ -979,6 +979,7 @@ static void wined3d_texture_unload(struct wined3d_resource *resource)
sub_resource->resource_ops->resource_unload(sub_resource);
}
wined3d_texture_force_reload(texture);
wined3d_texture_unload_gl_texture(texture);
}

View File

@ -451,7 +451,6 @@ static void volume_unload(struct wined3d_resource *resource)
}
/* The texture name is managed by the container. */
wined3d_texture_force_reload(volume->container);
volume->flags &= ~WINED3D_VFLAG_CLIENT_STORAGE;
resource_unload(resource);