[PATCH 3/5] wined3d: Set the surface pitch for user-memory surfaces.
Henri Verbeet
hverbeet at gmail.com
Tue Feb 10 15:05:58 CST 2015
On 10 February 2015 at 20:14, Matteo Bruni <mbruni at codeweavers.com> wrote:
> + {
> surface->resource.size = wined3d_format_calculate_size(texture_resource->format,
> texture_resource->device->surface_alignment, width, height, 1);
> + surface->pitch = wined3d_format_calculate_pitch(texture_resource->format, width);
> + }
>
A small comment mentioning that user memory surfaces don't have the
regular surface alignment probably wouldn't hurt.
More information about the wine-devel
mailing list