d3d8: Use wined3d_texture_unmap instead of wined3d_surface_unmap in d3d8_surface_UnlockRect.

Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Riccardo Bortolato 2015-10-12 12:44:08 +02:00 committed by Alexandre Julliard
parent 9c00f968d6
commit 2f1b6114da
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ static HRESULT WINAPI d3d8_surface_UnlockRect(IDirect3DSurface8 *iface)
TRACE("iface %p.\n", iface);
wined3d_mutex_lock();
hr = wined3d_surface_unmap(surface->wined3d_surface);
hr = wined3d_texture_unmap(surface->wined3d_texture, surface->sub_resource_idx);
wined3d_mutex_unlock();
switch(hr)