=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: wined3d: Avoid unsynchronized buffer update when reloading whole buffer.

Alexandre Julliard julliard at winehq.org
Mon Nov 7 13:44:00 CST 2016


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

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Fri Nov  4 13:43:45 2016 +0100

wined3d: Avoid unsynchronized buffer update when reloading whole buffer.

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 <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 564b1fc..f686855 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
     {




More information about the wine-cvs mailing list