wined3d: Return success in wined3d_buffer_load_location() when the location is already current.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2017-01-30 13:04:41 +01:00 committed by Alexandre Julliard
parent afb2aa2512
commit ca6014b19a
1 changed files with 1 additions and 1 deletions

View File

@ -574,7 +574,7 @@ BOOL wined3d_buffer_load_location(struct wined3d_buffer *buffer,
if (buffer->locations & location)
{
TRACE("Location (%#x) is already up to date.\n", location);
return WINED3D_OK;
return TRUE;
}
if (!buffer->locations)