From ce8e259441410aba3f2345333003032ed9c45d65 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 10 Dec 2018 11:46:29 +0800 Subject: =?UTF-8?q?*=E5=88=A0=E9=99=A4shared=E7=9A=84lua=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lua/modules/graphics/je_lua_texture_font.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lua/modules/graphics/je_lua_texture_font.cpp') diff --git a/src/lua/modules/graphics/je_lua_texture_font.cpp b/src/lua/modules/graphics/je_lua_texture_font.cpp index 1365aa8..9c9d52c 100644 --- a/src/lua/modules/graphics/je_lua_texture_font.cpp +++ b/src/lua/modules/graphics/je_lua_texture_font.cpp @@ -43,9 +43,9 @@ namespace JinEngine Text* text = p2->getObject(); page = tf->typeset(*text, lineheight, spacing); } - Shared* shrPage = new Shared(page, Jin_Lua_Page); + Shared* shrPage = new Shared(page); LuaObject* luaPage = luax_newinstance(L, Jin_Lua_Page, shrPage); - luaPage->setDependency((int)PageDependency::DEP_TEXTURE_FONT, luaTexFont->getShared()); + luaPage->setDependency((int)PageDependency::DEP_TEXTURE_FONT, luaTexFont); return 1; } -- cgit v1.1-26-g67d0