summarylogtreecommitdiffstats
path: root/0004-wined3d-Use-GL_CLIENT_STORAGE_BIT-for-persistent-map.patch
diff options
context:
space:
mode:
authorStefan Schmidt2018-03-07 18:20:55 +0100
committerStefan Schmidt2018-03-07 18:20:55 +0100
commit9cc0c1987f64a4f538e747058b53e37f4548d8f4 (patch)
tree2bac1b3e58a4e2857e5cc32d30cbe1a3423b94d6 /0004-wined3d-Use-GL_CLIENT_STORAGE_BIT-for-persistent-map.patch
parent8f3ed8701334e289a8a98b275825044cecab9277 (diff)
downloadaur-9cc0c1987f64a4f538e747058b53e37f4548d8f4.tar.gz
Updated to wine-staging 3.3 and commit b33e274f894de751f9abe2e09aec5bc9d1e6b992
Diffstat (limited to '0004-wined3d-Use-GL_CLIENT_STORAGE_BIT-for-persistent-map.patch')
-rw-r--r--0004-wined3d-Use-GL_CLIENT_STORAGE_BIT-for-persistent-map.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/0004-wined3d-Use-GL_CLIENT_STORAGE_BIT-for-persistent-map.patch b/0004-wined3d-Use-GL_CLIENT_STORAGE_BIT-for-persistent-map.patch
new file mode 100644
index 000000000000..45c7ada812c6
--- /dev/null
+++ b/0004-wined3d-Use-GL_CLIENT_STORAGE_BIT-for-persistent-map.patch
@@ -0,0 +1,26 @@
+From 780cb020b7064eac55b1394aa6dbef2f11f2488a 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/5] 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
+