We need to subdivide triangles if either of the dimensions is
larger than the max edge length, not when both of them are larger.
Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
* To cope with this problem we check if triangles are large and
* subdivide them if needed.
*/
- setup->subdivide_large_triangles = (setup->fb.width > 2048 &&
+ setup->subdivide_large_triangles = (setup->fb.width > 2048 ||
setup->fb.height > 2048);
}