Riccardo Bortolato : d3d8: Make use of wined3d_texture_unmap in d3d8_volume_UnlockBox.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Oct 7 10:00:48 CDT 2015


Module: wine
Branch: master
Commit: d49ad6c608c3e5effa0915527d87a5d13c6b4d56
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d49ad6c608c3e5effa0915527d87a5d13c6b4d56

Author: Riccardo Bortolato <rikyz619 at gmail.com>
Date:   Tue Oct  6 10:36:50 2015 +0200

d3d8: Make use of wined3d_texture_unmap in d3d8_volume_UnlockBox.

Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>

---

 dlls/d3d8/volume.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/d3d8/volume.c b/dlls/d3d8/volume.c
index 52562ad..81cd40e 100644
--- a/dlls/d3d8/volume.c
+++ b/dlls/d3d8/volume.c
@@ -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;




More information about the wine-cvs mailing list