[12/23] wined3d: Clear WINED3D_BUFFER_DISCARD flag in unmap.

Andrew Wesie awesie at gmail.com
Sun Nov 13 12:35:12 CST 2016


Signed-off-by: Andrew Wesie <awesie at gmail.com>
---
 dlls/wined3d/buffer.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/wined3d/buffer.c b/dlls/wined3d/buffer.c
index 58c273c..7bfd8f4 100644
--- a/dlls/wined3d/buffer.c
+++ b/dlls/wined3d/buffer.c
@@ -1248,6 +1248,7 @@ static void wined3d_buffer_unmap(struct wined3d_buffer *buffer)
         context_release(context);
 
         buffer_clear_dirty_areas(buffer);
+        buffer->flags &= ~WINED3D_BUFFER_DISCARD;
         buffer->map_ptr = NULL;
     }
     else if (buffer->flags & WINED3D_BUFFER_HASDESC)
-- 
2.7.4




More information about the wine-patches mailing list