Commit 0bf0e0d3 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Use the resource access flags in wined3d_device_evict_managed_resources().

parent 72a2f024
......@@ -4651,7 +4651,7 @@ void CDECL wined3d_device_evict_managed_resources(struct wined3d_device *device)
{
TRACE("Checking resource %p for eviction.\n", resource);
if (resource->pool == WINED3D_POOL_MANAGED && !resource->map_count)
if (wined3d_resource_access_is_managed(resource->access) && !resource->map_count)
{
TRACE("Evicting %p.\n", resource);
wined3d_cs_emit_unload_resource(device->cs, 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