wined3d: Mark buffers as used in wined3d_buffer_copy().

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2016-11-03 12:21:13 +01:00 committed by Alexandre Julliard
parent 5b0cd6fa3e
commit 20b989ef86
1 changed files with 3 additions and 0 deletions

View File

@ -1264,6 +1264,9 @@ HRESULT wined3d_buffer_copy(struct wined3d_buffer *dst_buffer, unsigned int dst_
DWORD dst_location;
HRESULT hr;
buffer_mark_used(dst_buffer);
buffer_mark_used(src_buffer);
device = dst_buffer->resource.device;
context = context_acquire(device, NULL);