wined3d: Use wined3d_format_calculate_pitch() in wined3d_surface_upload_data().
commit09b09b307a0c909bbc185dcb9348603d84a3b479
authorHenri Verbeet <hverbeet@codeweavers.com>
Fri, 26 Aug 2016 11:51:19 +0000 (26 13:51 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 26 Aug 2016 14:23:42 +0000 (26 23:23 +0900)
tree3bbef179f00a655e3a19c044ccf5449aff097fc5
parentb2666a6316c68abc183eb7a351c6caaab797f608
wined3d: Use wined3d_format_calculate_pitch() in wined3d_surface_upload_data().

Mostly because wined3d_format_calculate_size() will need to handle
WINED3DFMT_FLAG_BROKEN_PITCH, but it also makes more sense conceptually.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/wined3d/surface.c