diff --git a/dlls/d3d9/surface.c b/dlls/d3d9/surface.c index ec5b420414d..83c90abbbf6 100644 --- a/dlls/d3d9/surface.c +++ b/dlls/d3d9/surface.c @@ -272,7 +272,7 @@ static HRESULT WINAPI d3d9_surface_UnlockRect(IDirect3DSurface9 *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)