Commit 8e117a51 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Get resource info from the texture in wined3d_volume_load_location().

parent 9736c861
......@@ -263,10 +263,10 @@ BOOL wined3d_volume_load_location(struct wined3d_volume *volume,
return TRUE;
}
if ((volume->resource.access_flags & required_access) != required_access)
if ((texture->resource.access_flags & required_access) != required_access)
{
ERR("Operation requires %#x access, but volume only has %#x.\n",
required_access, volume->resource.access_flags);
required_access, texture->resource.access_flags);
return FALSE;
}
......
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