wined3d: Heightscaled surfaces still have an integer size.
This commit is contained in:
parent
1d7a05cb80
commit
774cb21a4d
|
@ -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));
|
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;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue