We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5a426f6 + 521dc51 commit 4a332f5Copy full SHA for 4a332f5
libs/hwui/font/Font.cpp
@@ -51,7 +51,7 @@ Font::~Font() {
51
void Font::invalidateTextureCache(CacheTexture* cacheTexture) {
52
for (uint32_t i = 0; i < mCachedGlyphs.size(); i++) {
53
CachedGlyphInfo* cachedGlyph = mCachedGlyphs.valueAt(i);
54
- if (cacheTexture || cachedGlyph->mCacheTexture == cacheTexture) {
+ if (!cacheTexture || cachedGlyph->mCacheTexture == cacheTexture) {
55
cachedGlyph->mIsValid = false;
56
}
57
0 commit comments