1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-06 00:55:50 +00:00

Fix lambda scope for postprocess bindings

This commit is contained in:
Cody Glassman 2023-05-29 17:12:37 +00:00 committed by elsid
parent df57f8004b
commit 6747619cb1

View File

@ -51,7 +51,7 @@ namespace MWLua
{
return [context](const Shader& shader, const std::string& name, const T& value) {
context.mLuaManager->addAction(
[&] {
[=] {
MWBase::Environment::get().getWorld()->getPostProcessor()->setUniform(shader.mShader, name, value);
},
"SetUniformShaderAction");
@ -84,7 +84,7 @@ namespace MWLua
}
context.mLuaManager->addAction(
[&] {
[=] {
MWBase::Environment::get().getWorld()->getPostProcessor()->setUniform(shader.mShader, name, values);
},
"SetUniformShaderAction");