ddraw: Use wined3d_resource_unmap() in d3d_vertex_buffer7_Unlock().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2016-08-29 10:49:01 +02:00 committed by Alexandre Julliard
parent 7834f00be5
commit bd7d8fc04f
1 changed files with 1 additions and 1 deletions

View File

@ -309,7 +309,7 @@ static HRESULT WINAPI d3d_vertex_buffer7_Unlock(IDirect3DVertexBuffer7 *iface)
TRACE("iface %p.\n", iface); TRACE("iface %p.\n", iface);
wined3d_mutex_lock(); wined3d_mutex_lock();
wined3d_buffer_unmap(buffer->wined3d_buffer); wined3d_resource_unmap(wined3d_buffer_get_resource(buffer->wined3d_buffer), 0);
wined3d_mutex_unlock(); wined3d_mutex_unlock();
return D3D_OK; return D3D_OK;