looping over the glyphTexinfos array using correct limit

This commit is contained in:
codeanticode
2012-06-13 16:10:00 +00:00
parent 3c5a5bd176
commit 43d97141ee
@@ -204,7 +204,7 @@ class PFontTexture implements PConstants {
public void updateGlyphsTexCoords() {
// loop over current glyphs.
for (int i = 0; i < font.getGlyphCount(); i++) {
for (int i = 0; i < glyphTexinfos.length; i++) {
TextureInfo tinfo = glyphTexinfos[i];
if (tinfo != null && tinfo.texIndex == currentTex) {
tinfo.updateUV();