diff --git a/src/video_core/macro.cpp b/src/video_core/macro.cpp index c3c490b808..0d1fe0a52b 100644 --- a/src/video_core/macro.cpp +++ b/src/video_core/macro.cpp @@ -1371,7 +1371,7 @@ static void Dump(u64 hash, std::span code, bool decompiled = false) { } void MacroEngine::Execute(Engines::Maxwell3D& maxwell3d, u32 method, std::span parameters) { - auto const execute_variant = [&maxwell3d](AnyCachedMacro& acm, auto parameters, auto method) { + auto const execute_variant = [&maxwell3d, ¶meters, method](AnyCachedMacro& acm) { if (auto a = std::get_if(&acm)) a->Execute(maxwell3d, parameters, method); if (auto a = std::get_if(&acm)) @@ -1405,7 +1405,7 @@ void MacroEngine::Execute(Engines::Maxwell3D& maxwell3d, u32 method, std::spansecond; if (!CanBeHLEProgram(ci.hash) || Settings::values.disable_macro_hle) maxwell3d.RefreshParameters(); //LLE must reload parameters - execute_variant(ci.program, parameters, method); + execute_variant(ci.program); } else { // Macro not compiled, check if it's uploaded and if so, compile it std::optional mid_method; @@ -1440,7 +1440,7 @@ void MacroEngine::Execute(Engines::Maxwell3D& maxwell3d, u32 method, std::spansecond, !std::holds_alternative(ci.program)); }