From c259854a0afc5e4fb8644af7c5c979f312f954f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3zef=20Kucia?= Date: Fri, 4 Nov 2016 13:43:45 +0100 Subject: [PATCH] wined3d: Avoid unsynchronized buffer update when reloading whole buffer. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes bc019fcbbd7f0014280a292bc58ef618cfbe34c7. Previously, we had the NOSYNC flag instead of the SYNC flag. When the NOSYNC flag was set the buffer was mapped with GL_MAP_UNSYNCHRONIZED_BIT. Now, when the SYNC flag is not set the buffer is mapped with GL_MAP_UNSYNCHRONIZED_BIT. Signed-off-by: Józef Kucia Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- dlls/wined3d/buffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/wined3d/buffer.c b/dlls/wined3d/buffer.c index 564b1fc648f..f686855d101 100644 --- a/dlls/wined3d/buffer.c +++ b/dlls/wined3d/buffer.c @@ -1009,9 +1009,9 @@ void wined3d_buffer_load(struct wined3d_buffer *buffer, struct wined3d_context * buffer_invalidate_bo_range(buffer, 0, 0); /* Avoid unfenced updates, we might overwrite more areas of the buffer than the application - * cleared for unsynchronized updates + * cleared for unsynchronized updates. */ - flags = 0; + flags = WINED3D_BUFFER_SYNC; } else {