Corrected two while loops (they should have been plain if-statements, not loops).

This commit is contained in:
the_fiddler 2008-06-22 16:31:48 +00:00
parent f40073b1b9
commit 768dd51e74

View file

@ -182,10 +182,10 @@ namespace OpenTK.Graphics
if (wordWarp || rightToLeft || alignment != StringAlignment.Near) if (wordWarp || rightToLeft || alignment != StringAlignment.Near)
throw new NotImplementedException(); throw new NotImplementedException();
while (8 * text.Length > vertices.Length) if (8 * text.Length > vertices.Length)
vertices = new Vector2[Math.Functions.NextPowerOfTwo(8 * text.Length)]; vertices = new Vector2[Math.Functions.NextPowerOfTwo(8 * text.Length)];
while (6 * text.Length > indices.Length) if (6 * text.Length > indices.Length)
indices = new ushort[Math.Functions.NextPowerOfTwo(6 * text.Length)]; indices = new ushort[Math.Functions.NextPowerOfTwo(6 * text.Length)];
num_indices = 6 * text.Length; num_indices = 6 * text.Length;