diff options
author | Lioncash <mathew1800@gmail.com> | 2022-11-29 14:04:40 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2022-11-29 14:38:46 +0100 |
commit | d7ec031419f7eef3f85210659cf7f6dc8c50d791 (patch) | |
tree | ccc3c652023497a48af86a2842480d88949c2804 /src/video_core/engines/kepler_memory.cpp | |
parent | Merge pull request #9325 from german77/default_by_default (diff) | |
download | yuzu-d7ec031419f7eef3f85210659cf7f6dc8c50d791.tar yuzu-d7ec031419f7eef3f85210659cf7f6dc8c50d791.tar.gz yuzu-d7ec031419f7eef3f85210659cf7f6dc8c50d791.tar.bz2 yuzu-d7ec031419f7eef3f85210659cf7f6dc8c50d791.tar.lz yuzu-d7ec031419f7eef3f85210659cf7f6dc8c50d791.tar.xz yuzu-d7ec031419f7eef3f85210659cf7f6dc8c50d791.tar.zst yuzu-d7ec031419f7eef3f85210659cf7f6dc8c50d791.zip |
Diffstat (limited to 'src/video_core/engines/kepler_memory.cpp')
-rw-r--r-- | src/video_core/engines/kepler_memory.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/engines/kepler_memory.cpp b/src/video_core/engines/kepler_memory.cpp index a3fbab1e5..08045d1cf 100644 --- a/src/video_core/engines/kepler_memory.cpp +++ b/src/video_core/engines/kepler_memory.cpp @@ -42,11 +42,11 @@ void KeplerMemory::CallMultiMethod(u32 method, const u32* base_start, u32 amount u32 methods_pending) { switch (method) { case KEPLERMEMORY_REG_INDEX(data): - upload_state.ProcessData(base_start, static_cast<size_t>(amount)); + upload_state.ProcessData(base_start, amount); return; default: - for (std::size_t i = 0; i < amount; i++) { - CallMethod(method, base_start[i], methods_pending - static_cast<u32>(i) <= 1); + for (u32 i = 0; i < amount; i++) { + CallMethod(method, base_start[i], methods_pending - i <= 1); } break; } |