[PATCH 4/4] wined3d: Don't store PBO pointers in allocatedMemory.

Stefan Dösinger stefan at codeweavers.com
Tue Nov 26 10:30:47 CST 2013


Am 2013-11-26 17:12, schrieb Henri Verbeet:
> On 25 November 2013 23:41, Stefan Dösinger <stefan at codeweavers.com> wrote:
>> @@ -817,6 +813,12 @@ static void surface_map(struct wined3d_surface *surface, const RECT *rect, DWORD
>>
>>          context_release(context);
>>      }
>> +    else
>> +    {
>> +        ret = surface->resource.allocatedMemory;
>> +    }
>> +
>> +    return ret;
>>  }
>>
> You don't really need an else-branch here, you can just return early
> in the PBO case.
Ok, please use the attached patch instead.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-wined3d-Don-t-store-PBO-pointers-in-allocatedMemory.patch
Type: text/x-patch
Size: 5876 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20131126/427656e4/attachment.bin>


More information about the wine-patches mailing list