fix glymp caching name

With recent changes in font selector, we where hitting
glyphcache_max_memsize so glyphcache[k].glyph.bb:free() got
invoked and crashed reader.
This commit is contained in:
Dobrica Pavlinusic
2012-05-20 00:50:04 +02:00
parent d678510d9a
commit 9de055eb5d

View File

@@ -30,12 +30,12 @@ function getGlyph(face, charcode)
glyphcache[hash] = {
age = glyphcache_max_age,
size = size,
g = glyph
glyph = glyph
}
else
glyphcache[hash].age = glyphcache_max_age
end
return glyphcache[hash].g
return glyphcache[hash].glyph
end
function glyphCacheHash(face, charcode)
return face..'_'..charcode;