Commit c259854a authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

wined3d: Avoid unsynchronized buffer update when reloading whole buffer.

Fixes bc019fcb. 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: 's avatarJózef Kucia <jkucia@codeweavers.com> Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 5cdb8f24
......@@ -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
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment