wined3d: Remove texture locations after downloading all subresources.
This commit is contained in:
parent
6334bf09b7
commit
aad1997dff
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue