1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-27 03:35:27 +00:00

Move TextureData

This commit is contained in:
Andrei Kortunov 2024-02-02 09:45:42 +04:00
parent 225e834b88
commit 69936f3537

View File

@ -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); };