mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-26 04:45:38 +00:00
Corrected two while loops (they should have been plain if-statements, not loops).
This commit is contained in:
parent
f40073b1b9
commit
768dd51e74
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue