Set *all* the vertex data to zero for newlines.

This commit is contained in:
Aloshi 2013-09-13 14:01:39 -05:00
parent 376d746686
commit 861a61cb3a

View file

@ -502,7 +502,7 @@ TextCache* Font::buildTextCache(const std::string& text, float offsetX, float of
{
y += (float)getHeight();
x = offsetX;
memset(&vert[i], 0, 6 * sizeof(float));
memset(&vert[i], 0, 6 * sizeof(TextCache::Vertex));
continue;
}