Riccardo Bortolato : d3d9: Make use of wined3d_texture_unmap in d3d9_surface_UnlockRect.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Oct 12 09:51:13 CDT 2015
Module: wine
Branch: master
Commit: 736ca38d11b82b1a25333e4a48b5d37717fa7914
URL: http://source.winehq.org/git/wine.git/?a=commit;h=736ca38d11b82b1a25333e4a48b5d37717fa7914
Author: Riccardo Bortolato <rikyz619 at gmail.com>
Date: Mon Oct 12 12:44:11 2015 +0200
d3d9: Make use of wined3d_texture_unmap in d3d9_surface_UnlockRect.
Signed-off-by: Riccardo Bortolato <rikyz619 at gmail.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/d3d9/surface.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/d3d9/surface.c b/dlls/d3d9/surface.c
index ec5b420..83c90ab 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)
More information about the wine-cvs
mailing list