d3d9: Use wined3d_resource_unmap() in d3d9_indexbuffer_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-30 11:48:22 +02:00 committed by Alexandre Julliard
parent 4d638863fb
commit a6e17d1108
1 changed files with 1 additions and 1 deletions

View File

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