diff options
Diffstat (limited to 'src/lua/modules/graphics/je_lua_texture.cpp')
-rw-r--r-- | src/lua/modules/graphics/je_lua_texture.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/modules/graphics/je_lua_texture.cpp b/src/lua/modules/graphics/je_lua_texture.cpp index 0ab79b5..a643dae 100644 --- a/src/lua/modules/graphics/je_lua_texture.cpp +++ b/src/lua/modules/graphics/je_lua_texture.cpp @@ -10,12 +10,12 @@ namespace JinEngine namespace Lua { - typedef Ref<Texture>& TextureRef; + typedef Shared<Texture>& TextureRef; LUA_IMPLEMENT inline TextureRef checkTexture(lua_State* L) { Proxy* proxy = (Proxy*)luax_checktype(L, 1, JIN_GRAPHICS_TEXTURE); - return proxy->getRef<Texture>(); + return proxy->getShared<Texture>(); } LUA_IMPLEMENT int l_getWidth(lua_State* L) |