mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-31 14:36:39 +00:00
Fix lambda scope for postprocess bindings
This commit is contained in:
parent
df57f8004b
commit
6747619cb1
1 changed files with 2 additions and 2 deletions
|
@ -51,7 +51,7 @@ namespace MWLua
|
||||||
{
|
{
|
||||||
return [context](const Shader& shader, const std::string& name, const T& value) {
|
return [context](const Shader& shader, const std::string& name, const T& value) {
|
||||||
context.mLuaManager->addAction(
|
context.mLuaManager->addAction(
|
||||||
[&] {
|
[=] {
|
||||||
MWBase::Environment::get().getWorld()->getPostProcessor()->setUniform(shader.mShader, name, value);
|
MWBase::Environment::get().getWorld()->getPostProcessor()->setUniform(shader.mShader, name, value);
|
||||||
},
|
},
|
||||||
"SetUniformShaderAction");
|
"SetUniformShaderAction");
|
||||||
|
@ -84,7 +84,7 @@ namespace MWLua
|
||||||
}
|
}
|
||||||
|
|
||||||
context.mLuaManager->addAction(
|
context.mLuaManager->addAction(
|
||||||
[&] {
|
[=] {
|
||||||
MWBase::Environment::get().getWorld()->getPostProcessor()->setUniform(shader.mShader, name, values);
|
MWBase::Environment::get().getWorld()->getPostProcessor()->setUniform(shader.mShader, name, values);
|
||||||
},
|
},
|
||||||
"SetUniformShaderAction");
|
"SetUniformShaderAction");
|
||||||
|
|
Loading…
Reference in a new issue