summarylogtreecommitdiffstats
path: root/0004-wined3d-Use-GL_CLIENT_STORAGE_BIT-for-persistent-map.patch
blob: 954f929294c823ad4fd67bd4cb19d48bb29fc90f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 08fc0e139509a6755489af3936ede49936896122 Mon Sep 17 00:00:00 2001
From: Andrew Comminos <andrew@comminos.com>
Date: Tue, 6 Mar 2018 02:07:31 -0800
Subject: [PATCH 4/9] wined3d: Use GL_CLIENT_STORAGE_BIT for persistent
 mappings.

---
 dlls/wined3d/buffer_heap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/wined3d/buffer_heap.c b/dlls/wined3d/buffer_heap.c
index b133bd6893..75f84b0088 100644
--- a/dlls/wined3d/buffer_heap.c
+++ b/dlls/wined3d/buffer_heap.c
@@ -169,7 +169,7 @@ HRESULT wined3d_buffer_heap_create(struct wined3d_context *context, GLsizeiptr s
     {
         access_flags |= GL_MAP_READ_BIT;
     }
-    storage_flags = access_flags;
+    storage_flags = GL_CLIENT_STORAGE_BIT | access_flags;
 
     // TODO(acomminos): where should we be checking for errors here?
     GL_EXTCALL(glGenBuffers(1, &object->buffer_object));
-- 
2.16.2