Commit aad1997d authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

wined3d: Remove texture locations after downloading all subresources.

parent 6334bf09
...@@ -1207,7 +1207,6 @@ static void surface_unload(struct wined3d_resource *resource) ...@@ -1207,7 +1207,6 @@ static void surface_unload(struct wined3d_resource *resource)
surface_load_location(surface, surface->resource.map_binding); surface_load_location(surface, surface->resource.map_binding);
surface_invalidate_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); context = context_acquire(device, NULL);
gl_info = context->gl_info; gl_info = context->gl_info;
......
...@@ -979,6 +979,7 @@ static void wined3d_texture_unload(struct wined3d_resource *resource) ...@@ -979,6 +979,7 @@ static void wined3d_texture_unload(struct wined3d_resource *resource)
sub_resource->resource_ops->resource_unload(sub_resource); sub_resource->resource_ops->resource_unload(sub_resource);
} }
wined3d_texture_force_reload(texture);
wined3d_texture_unload_gl_texture(texture); wined3d_texture_unload_gl_texture(texture);
} }
......
...@@ -451,7 +451,6 @@ static void volume_unload(struct wined3d_resource *resource) ...@@ -451,7 +451,6 @@ static void volume_unload(struct wined3d_resource *resource)
} }
/* The texture name is managed by the container. */ /* The texture name is managed by the container. */
wined3d_texture_force_reload(volume->container);
volume->flags &= ~WINED3D_VFLAG_CLIENT_STORAGE; volume->flags &= ~WINED3D_VFLAG_CLIENT_STORAGE;
resource_unload(resource); resource_unload(resource);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment