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:
parent
72a2f02486
commit
0bf0e0d3ae
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue