Fix bug where the first gl glyph in each row after the first would be overwritten, resulting in the incorrect number being shown in the cross visual tool

Originally committed to SVN as r5060.
This commit is contained in:
Thomas Goyne 2010-12-30 19:13:45 +00:00
parent 73c0515954
commit 5f0ba21e30
1 changed files with 2 additions and 1 deletions

View File

@ -288,8 +288,9 @@ bool OpenGLTextTexture::TryToInsert(OpenGLTextGlyph &glyph) {
if (nextY+h > height) return false;
x = 0;
y = nextY;
nextY = y+h;
Insert(glyph);
x += w;
nextY = y+h;
return true;
}
}