d3d8: Make use of wined3d_texture_unmap in d3d8_volume_UnlockBox.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
oldstable
Riccardo Bortolato 2015-10-06 10:36:50 +02:00 committed by Alexandre Julliard
parent 9621737c8e
commit d49ad6c608
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ static HRESULT WINAPI d3d8_volume_UnlockBox(IDirect3DVolume8 *iface)
TRACE("iface %p.\n", iface);
wined3d_mutex_lock();
hr = wined3d_volume_unmap(volume->wined3d_volume);
hr = wined3d_texture_unmap(volume->wined3d_texture, volume->sub_resource_idx);
wined3d_mutex_unlock();
return hr;