diff options
author | chai <chaifix@163.com> | 2018-12-10 11:46:29 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-12-10 11:46:29 +0800 |
commit | ce8e259441410aba3f2345333003032ed9c45d65 (patch) | |
tree | b28b8a30e2b30081a2f9bdbf0a142099f7a8cd6f /src/lua/modules/graphics/je_lua_ttf_data.cpp | |
parent | b1dfdae7a071407ef5e2d56f2203f96e6ba6068d (diff) |
*删除shared的lua类型信息
Diffstat (limited to 'src/lua/modules/graphics/je_lua_ttf_data.cpp')
-rw-r--r-- | src/lua/modules/graphics/je_lua_ttf_data.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/modules/graphics/je_lua_ttf_data.cpp b/src/lua/modules/graphics/je_lua_ttf_data.cpp index b10b993..4a95ab2 100644 --- a/src/lua/modules/graphics/je_lua_ttf_data.cpp +++ b/src/lua/modules/graphics/je_lua_ttf_data.cpp @@ -21,9 +21,9 @@ namespace JinEngine int fontsize = luax_checkinteger(L, 2); TTFData* fontData = luaTTFData->getObject<TTFData>(); TTF* font = fontData->createTTF(fontsize); - Shared* shrTTF = new Shared(font, Jin_Lua_TTF); + Shared* shrTTF = new Shared(font); LuaObject* luaTTF = luax_newinstance(L, Jin_Lua_TTF, shrTTF); - luaTTF->setDependency((int)TTFDependency::DEP_TTFDATA, luaTTFData->getShared()); + luaTTF->setDependency((int)TTFDependency::DEP_TTFDATA, luaTTFData); return 1; } |