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

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2018-01-30 15:54:38 +03:30 committed by Alexandre Julliard
parent 72a2f02486
commit 0bf0e0d3ae
1 changed files with 1 additions and 1 deletions

View File

@ -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);