From bd7d8fc04f0c59241863c1518cbabf1a947c9f74 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Mon, 29 Aug 2016 10:49:01 +0200 Subject: [PATCH] ddraw: Use wined3d_resource_unmap() in d3d_vertex_buffer7_Unlock(). Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- dlls/ddraw/vertexbuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ddraw/vertexbuffer.c b/dlls/ddraw/vertexbuffer.c index a0cc3f6cbe0..797afe2426d 100644 --- a/dlls/ddraw/vertexbuffer.c +++ b/dlls/ddraw/vertexbuffer.c @@ -309,7 +309,7 @@ static HRESULT WINAPI d3d_vertex_buffer7_Unlock(IDirect3DVertexBuffer7 *iface) TRACE("iface %p.\n", iface); wined3d_mutex_lock(); - wined3d_buffer_unmap(buffer->wined3d_buffer); + wined3d_resource_unmap(wined3d_buffer_get_resource(buffer->wined3d_buffer), 0); wined3d_mutex_unlock(); return D3D_OK;