On 10 February 2015 at 20:14, Matteo Bruni mbruni@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.