Don't try to draw nothing.

This commit is contained in:
Colby Klein
2011-02-27 20:47:11 -08:00
parent e1e7db4758
commit 5fe1ed811d
+2 -1
View File
@@ -359,7 +359,8 @@ void BitmapText::DrawChars( bool bUseStrokeTexture )
start = end;
}
DISPLAY->DrawQuads( vertices[0], iNumVertsToDraw );
if (!vertices.empty())
DISPLAY->DrawQuads( vertices[0], iNumVertsToDraw );
}
/* sText is UTF-8. If not all of the characters in sText are available in the