summaryrefslogtreecommitdiffstats
path: root/libs/hwui/FontRenderer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/hwui/FontRenderer.cpp')
-rw-r--r--libs/hwui/FontRenderer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/hwui/FontRenderer.cpp b/libs/hwui/FontRenderer.cpp
index 4e4a277..5485113 100644
--- a/libs/hwui/FontRenderer.cpp
+++ b/libs/hwui/FontRenderer.cpp
@@ -426,6 +426,8 @@ bool FontRenderer::cacheBitmap(const SkGlyph& glyph, uint32_t* retOriginX, uint3
void FontRenderer::initTextTexture() {
mTextTexture = new uint8_t[mCacheWidth * mCacheHeight];
+ memset(mTextTexture, 0, mCacheWidth * mCacheHeight * sizeof(uint8_t));
+
mUploadTexture = false;
glGenTextures(1, &mTextureId);