mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Move TextureData
This commit is contained in:
parent
225e834b88
commit
69936f3537
1 changed files with 1 additions and 1 deletions
|
@ -242,7 +242,7 @@ namespace MWLua
|
|||
sol::object size = LuaUtil::getFieldOrNil(options, "size");
|
||||
if (size.is<osg::Vec2f>())
|
||||
data.mSize = size.as<osg::Vec2f>();
|
||||
return luaManager->uiResourceManager()->registerTexture(data);
|
||||
return luaManager->uiResourceManager()->registerTexture(std::move(data));
|
||||
};
|
||||
|
||||
api["screenSize"] = []() { return osg::Vec2f(Settings::video().mResolutionX, Settings::video().mResolutionY); };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue