diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-07-12 10:05:04 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-11-11 23:52:19 +0100 |
commit | 622830f4e16a8f0eabeb1b81dea5fca613402d8c (patch) | |
tree | 7b800235ffe39690a60f7024578f42c54ed0f2d5 /src/video_core/engines | |
parent | maxwell_3d: Move code to separate functions (diff) | |
download | yuzu-622830f4e16a8f0eabeb1b81dea5fca613402d8c.tar yuzu-622830f4e16a8f0eabeb1b81dea5fca613402d8c.tar.gz yuzu-622830f4e16a8f0eabeb1b81dea5fca613402d8c.tar.bz2 yuzu-622830f4e16a8f0eabeb1b81dea5fca613402d8c.tar.lz yuzu-622830f4e16a8f0eabeb1b81dea5fca613402d8c.tar.xz yuzu-622830f4e16a8f0eabeb1b81dea5fca613402d8c.tar.zst yuzu-622830f4e16a8f0eabeb1b81dea5fca613402d8c.zip |
Diffstat (limited to 'src/video_core/engines')
-rw-r--r-- | src/video_core/engines/maxwell_3d.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp index f7fa5fea7..6287df633 100644 --- a/src/video_core/engines/maxwell_3d.cpp +++ b/src/video_core/engines/maxwell_3d.cpp @@ -132,9 +132,7 @@ void Maxwell3D::ProcessMacro(u32 method, const u32* base_start, u32 amount, bool executing_macro = method; } - for (std::size_t i = 0; i < amount; i++) { - macro_params.push_back(base_start[i]); - } + macro_params.insert(macro_params.end(), base_start, base_start + amount); // Call the macro when there are no more parameters in the command buffer if (is_last_call) { |