diff options
Diffstat (limited to 'src/quick/scenegraph/qsgdistancefieldglyphnode.cpp')
-rw-r--r-- | src/quick/scenegraph/qsgdistancefieldglyphnode.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/quick/scenegraph/qsgdistancefieldglyphnode.cpp b/src/quick/scenegraph/qsgdistancefieldglyphnode.cpp index fe5f16a0a2..f192573624 100644 --- a/src/quick/scenegraph/qsgdistancefieldglyphnode.cpp +++ b/src/quick/scenegraph/qsgdistancefieldglyphnode.cpp @@ -71,7 +71,10 @@ QSGDistanceFieldGlyphNode::~QSGDistanceFieldGlyphNode() delete m_material; if (m_glyph_cache) { - m_glyph_cache->release(m_glyphs.glyphIndexes()); + QVector<quint32> glyphIndexes; + for (int i = 0; i < m_allGlyphs.count(); ++i) + glyphIndexes.append(m_allGlyphs.at(i).glyphIndex); + m_glyph_cache->release(glyphIndexes); m_glyph_cache->unregisterGlyphNode(this); } |