Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #39 from aaronkennedy/jb9394
[qtdeclarative] Handle glyph runs with >65536 glyphs
  • Loading branch information
rburchell committed Oct 31, 2013
2 parents 97549f4 + 9a926b1 commit baed985
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -235,7 +235,12 @@ void QSGDistanceFieldGlyphNode::updateGeometry()
if (texture->textureId && !m_texture)
m_texture = texture;

if (m_texture != texture) {
// As we use UNSIGNED_SHORT indexing in the geometry, we overload the
// "glyphsInOtherTextures" concept as overflow for if there are more than
// 65536 vertices to render which would otherwise exceed the maximum index
// size. This will cause sub-nodes to be recursively created to handle any
// number of glyphs.
if (m_texture != texture || vp.size() >= 65536) {
if (texture->textureId) {
GlyphInfo &glyphInfo = glyphsInOtherTextures[texture];
glyphInfo.indexes.append(glyphIndex);
Expand Down

0 comments on commit baed985

Please sign in to comment.