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

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2016-03-28 18:58:00 +02:00 committed by Alexandre Julliard
parent 9736c861a2
commit 8e117a51f7
1 changed files with 2 additions and 2 deletions

View File

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