[PATCH 2/6] wined3d: Add a function for allocating aligned resource memory (try 3)

Henri Verbeet hverbeet at gmail.com
Fri Nov 1 04:05:03 CDT 2013


On 31 October 2013 20:06, Mihai-Augustin Serbanescu <romanux at gmail.com> wrote:
> Hello,
> I am having trouble playing League of Legends in using Wine and I've heard
> that allocating twice the amount of
> memory for each resource in wined3d_resource_allocate_sysmem() would help
> with that issue.
> Can you please point how can I do that?
You'd change the line
"if (!(mem = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
resource->size + align)))"
into
"if (!(mem = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
(resource->size * 2) + align)))"

Although it may be just as easy to just add "size *= 2;" at the top of
resource_init().



More information about the wine-devel mailing list