mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-27 03:35:27 +00:00
Move TextureData
This commit is contained in:
parent
225e834b88
commit
69936f3537
@ -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…
x
Reference in New Issue
Block a user