mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-29 12:11:34 +00:00
Merge branch 'wazabear/lambdascope' into 'master'
Fix lambda scope for postprocess bindings See merge request OpenMW/openmw!3070
This commit is contained in:
commit
4cbaa722dd
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) {
|
||||
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");
|
||||
|
|
Loading…
Reference in a new issue