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.