summarylogtreecommitdiffstats
path: root/mipmap.patch
diff options
context:
space:
mode:
authorPierre Franco2016-05-05 21:22:37 +0200
committerPierre Franco2016-05-05 21:22:37 +0200
commitee94d0f072229583c72a143015e818fe063b96de (patch)
tree61d0409bdf786c1f152afec4698ed6c5c94535b3 /mipmap.patch
parentf4a6809ad3295c28bb68aa48812dfab6ec468001 (diff)
downloadaur-ee94d0f072229583c72a143015e818fe063b96de.tar.gz
Updated to version 1.9.9-1
Diffstat (limited to 'mipmap.patch')
-rw-r--r--mipmap.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/mipmap.patch b/mipmap.patch
new file mode 100644
index 000000000000..5e26def74afe
--- /dev/null
+++ b/mipmap.patch
@@ -0,0 +1,18 @@
+diff --git a/dlls/wined3d/resource.c b/dlls/wined3d/resource.c
+index b76783f..aa45d5c 100644
+--- a/dlls/wined3d/resource.c
++++ b/dlls/wined3d/resource.c
+@@ -352,8 +352,12 @@ BOOL wined3d_resource_allocate_sysmem(struct wined3d_resource *resource)
+ void **p;
+ SIZE_T align = RESOURCE_ALIGNMENT - 1 + sizeof(*p);
+ void *mem;
++ UINT size = resource->size;
+
+- if (!(mem = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, resource->size + align)))
++ if (resource->width <= 64 && resource->height <= 64)
++ size *= 2;
++
++ if (!(mem = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, size + align)))
+ return FALSE;
+
+ p = (void **)(((ULONG_PTR)mem + align) & ~(RESOURCE_ALIGNMENT - 1)) - 1;