mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 15:43:38 +00:00
d3d8: Use wined3d_resource_unmap() in d3d8_indexbuffer_Unlock().
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
9a82f0efa2
commit
743a47d3c4
|
@ -490,7 +490,7 @@ static HRESULT WINAPI d3d8_indexbuffer_Unlock(IDirect3DIndexBuffer8 *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;
|
||||
|
|
Loading…
Reference in a new issue