wined3d: Heightscaled surfaces still have an integer size.

This commit is contained in:
Stefan Dösinger 2011-05-12 21:23:51 +02:00 committed by Alexandre Julliard
parent 1d7a05cb80
commit 774cb21a4d
1 changed files with 5 additions and 1 deletions

View File

@ -1615,7 +1615,11 @@ UINT wined3d_format_calculate_size(const struct wined3d_format *format, UINT ali
size = height * (((width * format->byte_count) + alignment - 1) & ~(alignment - 1));
}
if (format->heightscale != 0.0f) size *= format->heightscale;
if (format->heightscale != 0.0f)
{
/* The D3D format requirements make sure that the resulting format is an integer again */
size = (UINT) (size * format->heightscale);
}
return size;
}