Commit 30d670a7 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

wined3d: Allow NOOVERWRITE maps to be accelerated on 32-bit architectures.

parent 831ff102
......@@ -1002,8 +1002,7 @@ static HRESULT buffer_resource_sub_resource_map(struct wined3d_resource *resourc
* but it's safe because the client thread will wait for the
* map to return, thus completely serializing this call with
* other client code. */
if (wined3d_map_persistent())
buffer->resource.client.addr = addr;
buffer->resource.client.addr = addr;
if (((DWORD_PTR)buffer->map_ptr) & (RESOURCE_ALIGNMENT - 1))
{
......
......@@ -3088,8 +3088,7 @@ static bool wined3d_cs_map_upload_bo(struct wined3d_device_context *context, str
if (!device->adapter->adapter_ops->adapter_alloc_bo(device, resource, sub_resource_idx, &addr))
return false;
if (wined3d_map_persistent())
client->addr = addr;
client->addr = addr;
}
else
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment