diff options
-rw-r--r-- | libs/hwui/font/Font.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/font/Font.cpp b/libs/hwui/font/Font.cpp index 34e1a68..6e205b8 100644 --- a/libs/hwui/font/Font.cpp +++ b/libs/hwui/font/Font.cpp @@ -51,7 +51,7 @@ Font::~Font() { void Font::invalidateTextureCache(CacheTexture* cacheTexture) { for (uint32_t i = 0; i < mCachedGlyphs.size(); i++) { CachedGlyphInfo* cachedGlyph = mCachedGlyphs.valueAt(i); - if (cacheTexture || cachedGlyph->mCacheTexture == cacheTexture) { + if (!cacheTexture || cachedGlyph->mCacheTexture == cacheTexture) { cachedGlyph->mIsValid = false; } } |