Re: [PATCH 4/4] wined3d: Don't store PBO pointers in allocatedMemory.
26 Nov
2013
26 Nov
'13
10:12 a.m.
On 25 November 2013 23:41, Stefan Dösinger <stefan(a)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.
4398
Age (days ago)
4398
Last active (days ago)
0 comments
1 participants
participants (1)
-
Henri Verbeet