[PATCH 3/5] wined3d: Avoid unsynchronized buffer update when reloading whole buffer.

Józef Kucia jkucia at codeweavers.com
Fri Nov 4 07:43:45 CDT 2016


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>
---
 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
     {
-- 
2.7.3




More information about the wine-patches mailing list