On 25 November 2013 23:41, Stefan Dösinger stefan@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.