summaryrefslogtreecommitdiff
path: root/src/video_core/macro/macro.cpp
diff options
context:
space:
mode:
authorGravatar David Marcec2020-06-03 16:33:38 +1000
committerGravatar David Marcec2020-06-03 16:33:38 +1000
commit411f5527d41ba5c4f09b914b4fb4df0c6493f744 (patch)
treede34bb541a8d2fa4a3ff411dccb2aef8a5a24574 /src/video_core/macro/macro.cpp
parentPass by reference instead of copying parameters (diff)
downloadyuzu-411f5527d41ba5c4f09b914b4fb4df0c6493f744.tar.gz
yuzu-411f5527d41ba5c4f09b914b4fb4df0c6493f744.tar.xz
yuzu-411f5527d41ba5c4f09b914b4fb4df0c6493f744.zip
Mark parameters as const
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 d05a88479..89077a2d8 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, const 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);