call cre.initCache() in CreDocument:engineInit()

This commit is contained in:
Qingping Hou
2012-09-17 20:12:33 -04:00
parent 619f5a0f34
commit 25af917170

View File

@@ -25,6 +25,9 @@ end
function CreDocument:engineInit()
if not engine_initilized then
-- initialize cache
cre.initCache(1024*1024*64)
-- we need to initialize the CRE font list
local fonts = Font:getFontList()
for _k, _v in ipairs(fonts) do