Commit 25127c56 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

wined3d: Mark managed textures as dirty if applicable in wined3d_device_evict_managed_resources().

parent 44d6f2ad
......@@ -5521,9 +5521,24 @@ void CDECL wined3d_device_evict_managed_resources(struct wined3d_device *device)
if ((resource->usage & WINED3DUSAGE_MANAGED) && !resource->map_count)
{
if (resource->access & WINED3D_RESOURCE_ACCESS_GPU)
{
TRACE("Evicting %p.\n", resource);
wined3d_cs_emit_unload_resource(device->cs, resource);
}
if (resource->type != WINED3D_RTYPE_BUFFER)
{
struct wined3d_texture *texture = texture_from_resource(resource);
unsigned int i;
if (texture->dirty_regions)
{
for (i = 0; i < texture->layer_count; ++i)
wined3d_texture_add_dirty_region(texture, i, NULL);
}
}
}
}
}
......
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