[PATCH 4/4] wined3d: Don't store PBO pointers in allocatedMemory.
Henri Verbeet
hverbeet at gmail.com
Tue Nov 26 10:12:31 CST 2013
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.
More information about the wine-devel
mailing list