summaryrefslogtreecommitdiff
path: root/src/video_core/macro/macro.cpp
diff options
context:
space:
mode:
authorGravatar David Marcec2020-06-02 16:37:06 +1000
committerGravatar David Marcec2020-06-02 16:37:06 +1000
commit3a20e74f4056a03253e563510048e99ea548d5b4 (patch)
treeebdd756d53851ea51af7765824bfc327a83264e4 /src/video_core/macro/macro.cpp
parentFavor switch case over jump table (diff)
downloadyuzu-3a20e74f4056a03253e563510048e99ea548d5b4.tar.gz
yuzu-3a20e74f4056a03253e563510048e99ea548d5b4.tar.xz
yuzu-3a20e74f4056a03253e563510048e99ea548d5b4.zip
Pass by reference instead of copying parameters
Diffstat (limited to 'src/video_core/macro/macro.cpp')
-rw-r--r--src/video_core/macro/macro.cpp2
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) {
15 uploaded_macro_code[method].push_back(data); 15 uploaded_macro_code[method].push_back(data);
16} 16}
17 17
18void MacroEngine::Execute(u32 method, std::vector<u32> parameters) { 18void MacroEngine::Execute(u32 method, std::vector<u32>& parameters) {
19 auto compiled_macro = macro_cache.find(method); 19 auto compiled_macro = macro_cache.find(method);
20 if (compiled_macro != macro_cache.end()) { 20 if (compiled_macro != macro_cache.end()) {
21 compiled_macro->second->Execute(parameters, method); 21 compiled_macro->second->Execute(parameters, method);