[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: [PATCH 4/4] wined3d: Don't store PBO pointers in allocatedMemory.
From:       Henri Verbeet <hverbeet () gmail ! com>
Date:       2013-11-26 16:12:31
Message-ID: CAOsNvwzam=A13hEuM+RGu=rHV7E=KPbuFGH2DQ467JAq_q1dZg () mail ! gmail ! com
[Download RAW message or body]

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.



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic