[v2 resend 2/6] d3d8: use wined3d_texture_unmap instead of wined3d_surface_unmap in d3d8_surface_UnlockRect
Riccardo Bortolato
rikyz619 at gmail.com
Mon Oct 12 05:44:08 CDT 2015
Signed-off-by: Riccardo Bortolato <rikyz619 at gmail.com>
---
dlls/d3d8/surface.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/d3d8/surface.c b/dlls/d3d8/surface.c
index 98132ae..75deac3 100644
--- a/dlls/d3d8/surface.c
+++ b/dlls/d3d8/surface.c
@@ -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)
--
1.9.1
More information about the wine-patches
mailing list