From 861a61cb3a1b700aeaf1ddb125ea665ff17a22fe Mon Sep 17 00:00:00 2001 From: Aloshi Date: Fri, 13 Sep 2013 14:01:39 -0500 Subject: [PATCH] Set *all* the vertex data to zero for newlines. --- src/Font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Font.cpp b/src/Font.cpp index 5e200337a..57a5eaf64 100644 --- a/src/Font.cpp +++ b/src/Font.cpp @@ -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; }