diff options
| author | David Marcec <dmarcecguzman@gmail.com> | 2020-06-02 16:37:06 +1000 |
|---|---|---|
| committer | David Marcec <dmarcecguzman@gmail.com> | 2020-06-02 16:37:06 +1000 |
| commit | 3a20e74f4056a03253e563510048e99ea548d5b4 (patch) | |
| tree | ebdd756d53851ea51af7765824bfc327a83264e4 /src/video_core/macro/macro.cpp | |
| parent | 8118ea160b194fbcc600c44bff3be556b249c780 (diff) | |
Pass by reference instead of copying parameters
Diffstat (limited to 'src/video_core/macro/macro.cpp')
| -rw-r--r-- | src/video_core/macro/macro.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/macro/macro.cpp b/src/video_core/macro/macro.cpp index 85a6e5dd4..d05a88479 100644 --- a/src/video_core/macro/macro.cpp +++ b/src/video_core/macro/macro.cpp @@ -15,7 +15,7 @@ void MacroEngine::AddCode(u32 method, u32 data) { uploaded_macro_code[method].push_back(data); } -void MacroEngine::Execute(u32 method, std::vector<u32> parameters) { +void MacroEngine::Execute(u32 method, std::vector<u32>& parameters) { auto compiled_macro = macro_cache.find(method); if (compiled_macro != macro_cache.end()) { compiled_macro->second->Execute(parameters, method); |
