From 82ec316a058cc2e1894fb64eee1249ff663f112e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20D=C3=B6singer?= <stefan@codeweavers.com>
Date: Fri, 22 Aug 2014 15:52:50 +0200
Subject: wined3d: Wait only for the buffer to be idle.

This got lost somewhere during the patch reordering.
---
 dlls/wined3d/buffer.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/wined3d/buffer.c b/dlls/wined3d/buffer.c
index 15ed760..c0f96e3 100644
--- a/dlls/wined3d/buffer.c
+++ b/dlls/wined3d/buffer.c
@@ -1051,8 +1051,7 @@ HRESULT CDECL wined3d_buffer_map(struct wined3d_buffer *buffer, UINT offset, UIN
         }
         else if(!(flags & (WINED3D_MAP_NOOVERWRITE | WINED3D_MAP_READONLY)))
         {
-            FIXME("waiting for cs, flags 0x%04x.\n", flags);
-            device->cs->ops->finish(device->cs);
+            wined3d_resource_wait_fence(&buffer->resource);
         }
     }
 
-- 
2.1.3

