Commit 51b9a9bb authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

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

parent d099e45e
...@@ -284,7 +284,7 @@ DWORD CDECL wined3d_resource_set_priority(struct wined3d_resource *resource, DWO ...@@ -284,7 +284,7 @@ DWORD CDECL wined3d_resource_set_priority(struct wined3d_resource *resource, DWO
{ {
DWORD prev; DWORD prev;
if (resource->pool != WINED3D_POOL_MANAGED) if (!wined3d_resource_access_is_managed(resource->access))
{ {
WARN("Called on non-managed resource %p, ignoring.\n", resource); WARN("Called on non-managed resource %p, ignoring.\n", resource);
return 0; return 0;
......
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